summaryrefslogtreecommitdiffstats
path: root/flake.nix
blob: e69412a962a944ff4b55f89cf753b58d4d853d6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
  edition = 201909;

  description = "A tool for modifying ELF executables and libraries";

  outputs = { self, nixpkgs }: rec {

    overlay = final: prev: {

      patchelf-new = final.stdenv.mkDerivation {
        name = "patchelf-${hydraJobs.tarball.version}";
        src = "${hydraJobs.tarball}/tarballs/*.tar.bz2";
      };

    };

    hydraJobs = import ./release.nix {
      patchelfSrc = self;
      nixpkgs = nixpkgs;
    };

    checks.build = hydraJobs.build.x86_64-linux;

    packages.patchelf = (import nixpkgs {
      system = "x86_64-linux";
      overlays = [ self.overlay ];
    }).patchelf-new;

    defaultPackage = packages.patchelf;

  };
}