The attached patch fixes the build of the re2c Nixpkgs expression by
adjusting the sourceRoot to account for the unpackFile treatment of a
directory.
>From 39acc883cca970653b7b2fa5ed1c4630b11a1e9d Mon Sep 17 00:00:00 2001
From: Karn Kallio <kkal...@skami.org>
Date: Sat, 8 Jul 2017 21:32:17 -0400
Subject: [PATCH] re2c : Fix build by adjusting sourceRoot.

---
 pkgs/development/tools/parsing/re2c/default.nix | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgs/development/tools/parsing/re2c/default.nix b/pkgs/development/tools/parsing/re2c/default.nix
index a70afe5117..6d74656d61 100644
--- a/pkgs/development/tools/parsing/re2c/default.nix
+++ b/pkgs/development/tools/parsing/re2c/default.nix
@@ -4,7 +4,7 @@ stdenv.mkDerivation rec {
   name = "re2c-${version}";
   version = "0.16";
 
-  sourceRoot = "${name}-src/re2c";
+  sourceRoot = "re2c/re2c";
 
   src = fetchFromGitHub {
     owner = "skvadrik";
-- 
2.13.2

_______________________________________________
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to