Skip to content

Commit c388c5d

Browse files
authored
Merge pull request #306 from Mic92/aarch64
fix aarch64 build
2 parents 3113c73 + 893e298 commit c388c5d

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

flake.nix

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@
1515
overlays = [ self.overlay ];
1616
}
1717
);
18-
18+
version = builtins.readFile ./version
19+
+ "." + builtins.substring 0 8 self.lastModifiedDate
20+
+ "." + (self.shortRev or "dirty");
1921
pkgs = nixpkgsFor.${"x86_64-linux"};
20-
2122
in
2223

2324
{
24-
2525
overlay = final: prev: {
26-
2726
patchelf-new = final.stdenv.mkDerivation {
28-
name = "patchelf-${self.hydraJobs.tarball.version}";
29-
src = "${self.hydraJobs.tarball}/tarballs/*.tar.bz2";
30-
nativeBuildInputs = [ pkgs.autoreconfHook ];
27+
pname = "patchelf";
28+
inherit version;
29+
src = self;
30+
nativeBuildInputs = [ final.autoreconfHook ];
3131
doCheck = true;
3232
};
3333

@@ -38,9 +38,7 @@
3838
tarball =
3939
pkgs.releaseTools.sourceTarball rec {
4040
name = "patchelf-tarball";
41-
version = builtins.readFile ./version
42-
+ "." + builtins.substring 0 8 self.lastModifiedDate
43-
+ "." + (self.shortRev or "dirty");
41+
inherit version;
4442
versionSuffix = ""; # obsolete
4543
src = self;
4644
preAutoconf = "echo ${version} > version";

0 commit comments

Comments
 (0)