summary refs log tree commit diff
path: root/pkgs/development/compilers/arachne-pnr
diff options
context:
space:
mode:
authorAustin Seipp <aseipp@pobox.com>2018-02-14 00:15:34 -0600
committerAustin Seipp <aseipp@pobox.com>2018-02-14 00:31:13 -0600
commit4b09bee83e921707c04c87bf75ef86e914d41a7d (patch)
treeee360f396d2f7cf73726d6db51c6e854e1809eaa /pkgs/development/compilers/arachne-pnr
parent3b6c08b55b7e5c4966992aca6be8e06d9c63ec2d (diff)
downloadnixpkgs-4b09bee83e921707c04c87bf75ef86e914d41a7d.tar
nixpkgs-4b09bee83e921707c04c87bf75ef86e914d41a7d.tar.gz
nixpkgs-4b09bee83e921707c04c87bf75ef86e914d41a7d.tar.bz2
nixpkgs-4b09bee83e921707c04c87bf75ef86e914d41a7d.tar.lz
nixpkgs-4b09bee83e921707c04c87bf75ef86e914d41a7d.tar.xz
nixpkgs-4b09bee83e921707c04c87bf75ef86e914d41a7d.tar.zst
nixpkgs-4b09bee83e921707c04c87bf75ef86e914d41a7d.zip
arachne-pnr: 2018.02.04 -> 2018.02.14
Also fixes 'arachne-pnr --version' output to correctly print the right
Git SHA1 revision.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
Diffstat (limited to 'pkgs/development/compilers/arachne-pnr')
-rw-r--r--pkgs/development/compilers/arachne-pnr/default.nix16
1 files changed, 12 insertions, 4 deletions
diff --git a/pkgs/development/compilers/arachne-pnr/default.nix b/pkgs/development/compilers/arachne-pnr/default.nix
index 8dcebbf442b..97eb8e8b642 100644
--- a/pkgs/development/compilers/arachne-pnr/default.nix
+++ b/pkgs/development/compilers/arachne-pnr/default.nix
@@ -1,21 +1,29 @@
 { stdenv, fetchFromGitHub, icestorm }:
 
+with builtins;
+
 stdenv.mkDerivation rec {
   name = "arachne-pnr-${version}";
-  version = "2018.02.04";
+  version = "2018.02.14";
 
   src = fetchFromGitHub {
     owner  = "cseed";
     repo   = "arachne-pnr";
-    rev    = "c21df0062c6ee13e8c8280cefbb7c017823336c0";
-    sha256 = "1ah1gn07av3ff5lnay4p7dahaacbyj0mfakbx7g5fs3p1m1m8p1k";
+    rev    = "b54675413f9aac1d9a1fb0a8e9354bec2a2a8f3c";
+    sha256 = "06slsb239qk1r2g96n1g37yp8314cy7yi4g1yf86fr87fr11ml8l";
   };
 
   enableParallelBuilding = true;
   makeFlags =
-    [ "PREFIX=$(out)" "ICEBOX=${icestorm}/share/icebox"
+    [ "PREFIX=$(out)"
+      "ICEBOX=${icestorm}/share/icebox"
     ];
 
+  patchPhase = ''
+    substituteInPlace ./Makefile \
+      --replace 'echo UNKNOWN' 'echo ${substring 0 10 src.rev}'
+  '';
+
   meta = {
     description = "Place and route tool for FPGAs";
     longDescription = ''