git.iko.soy/typeable/nixpkgs
on master help sign in
nextpnr: 2019.09.28 -> 2019.10.13
94fc232Emily
pkgs/development/compilers/nextpnr/default.nix+24−9
@@ -14,15 +14,26 @@ let
14in
14in
15with stdenv; mkDerivation rec {
15with stdenv; mkDerivation rec {
16 pname = "nextpnr";
16 pname = "nextpnr";
17− version = "2019.09.28";
17+ version = "2019.10.13";
18
18
19+ srcs = [
19− src = fetchFromGitHub {
20+ (fetchFromGitHub {
20− owner = "yosyshq";
21+ owner = "YosysHQ";
21− repo = "nextpnr";
22+ repo = "nextpnr";
22− rev = "7cd1e0495122847611b17a8d1f007d97a05b288c";
23+ rev = "c365dd1cabc3a4308ab9110534918623622c246b";
23− sha256 = "13y739l92plb22g73jf35pyh3y94b2vq0i65r9c31r2rb7fw4bbl";
24+ sha256 = "1344pyq9xb5y1vxsnfgr488drfjsa6ls1jck0z9hwam6vg55s10r";
24− fetchSubmodules = true;
25+ name = "nextpnr";
26+ })
27+ (fetchFromGitHub {
28+ owner = "YosysHQ";
29+ repo = "nextpnr-tests";
30+ rev = "8f93e7e0f897b1b5da469919c9a43ba28b623b2a";
31+ sha256 = "0zpd0w49k9l7rs3wmi2v8z5s4l4lad5rprs5l83w13667himpzyc";
32+ name = "nextpnr-tests";
25− };
33+ })
34+ ];
35+
36+ sourceRoot = "nextpnr";
26
37
27 nativeBuildInputs
38 nativeBuildInputs
28 = [ cmake ]
39 = [ cmake ]
@@ -51,13 +62,17 @@ with stdenv; mkDerivation rec {
51 # but works ok. We should probably make this overrideable upstream.
62 # but works ok. We should probably make this overrideable upstream.
52 patchPhase = with builtins; ''
63 patchPhase = with builtins; ''
53 substituteInPlace ./CMakeLists.txt \
64 substituteInPlace ./CMakeLists.txt \
54− --replace 'git log -1 --format=%h' 'echo ${substring 0 11 src.rev}'
65+ --replace 'git log -1 --format=%h' 'echo ${substring 0 11 (elemAt srcs 0).rev}'
55
66
56 # use PyPy for icestorm if enabled
67 # use PyPy for icestorm if enabled
57 substituteInPlace ./ice40/family.cmake \
68 substituteInPlace ./ice40/family.cmake \
58 --replace ''\'''${PYTHON_EXECUTABLE}' '${icestorm.pythonInterp}'
69 --replace ''\'''${PYTHON_EXECUTABLE}' '${icestorm.pythonInterp}'
59 '';
70 '';
60
71
72+ preBuild = ''
73+ ln -s ../nextpnr-tests tests
74+ '';
75+
61 doCheck = true;
76 doCheck = true;
62
77
63 postFixup = lib.optionalString enableGui ''
78 postFixup = lib.optionalString enableGui ''