blob: 5ba87dbc4cf4e1a1dfba7eb3a87aad9b7905561d (
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
|
{
description = "A tool for modifying ELF executables and libraries";
inputs.nixpkgs.url = "nixpkgs/nixos-20.03";
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
);
};
}
|