Skip to content

Commit

Permalink
nextpnr: fix version string output
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Seipp <aseipp@pobox.com>
  • Loading branch information
thoughtpolice committed Jan 9, 2019
1 parent 412e02c commit 651679c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkgs/development/compilers/nextpnr/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ stdenv.mkDerivation rec {
"-DICEBOX_ROOT=${icestorm}/share/icebox"
] ++ (stdenv.lib.optional (!enableGui) "-DBUILD_GUI=OFF");

# Fix the version number. This is a bit stupid (and fragile) in practice
# but works ok. We should probably make this overrideable upstream.
patchPhase = with builtins; ''
substituteInPlace ./CMakeLists.txt \
--replace 'git log -1 --format=%h' 'echo ${substring 0 11 src.rev}'
'';

meta = with stdenv.lib; {
description = "Place and route tool for FPGAs";
homepage = https://github.com/yosyshq/nextpnr;
Expand Down

0 comments on commit 651679c

Please sign in to comment.