flake.nix: Provide a Nixpkgs overlay

Also update the lock file.
This commit is contained in:
Eelco Dolstra 2019-09-19 00:06:50 +02:00
parent 30da670056
commit 8cc2d64444
No known key found for this signature in database
GPG Key ID: 8170B4726D7198DE
2 changed files with 17 additions and 4 deletions

View File

@ -2,9 +2,10 @@
"inputs": {
"nixpkgs": {
"inputs": {},
"narHash": "sha256-TrLhI3xPkTTznE9gcMHhkHirGNN7N02zM4DxJ/U3WRs=",
"uri": "github:edolstra/nixpkgs/24bf27fc215e8300877dfa1c426b9966bbfbd150"
"narHash": "sha256-HGlE2VNbdEjCP76hWAS72kHBlMWhpvqWo58Obg1Vy6s=",
"originalUri": "nixpkgs",
"uri": "github:edolstra/nixpkgs/13e1bce51f4aebdf3db58ce8c4a93e904a272bff"
}
},
"version": 2
"version": 3
}

View File

@ -5,6 +5,15 @@
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;
@ -12,7 +21,10 @@
checks.build = hydraJobs.build.x86_64-linux;
packages.patchelf = hydraJobs.build.x86_64-linux;
packages.patchelf = (import nixpkgs {
system = "x86_64-linux";
overlays = [ self.overlay ];
}).patchelf-new;
defaultPackage = packages.patchelf;