blob: bc24bf4ee68c7b8c487a64ca7f10b8080af9493d (
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
33
34
35
36
37
38
39
40
41
|
{
edition = 201909;
description = "A tool for modifying ELF executables and libraries";
outputs = { self, nixpkgs }:
let
supportedSystems = [ "x86_64-linux" "i686-linux" "aarch64-linux" ];
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f system);
in
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 = forAllSystems (system: {
build = hydraJobs.build.${system};
});
defaultPackage = forAllSystems (system:
(import nixpkgs {
inherit system;
overlays = [ self.overlay ];
}).patchelf-new
);
};
}
|