From 34922a3951a0ada7af4fe808250abaf5feb4e28e Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Wed, 3 Feb 2016 00:51:08 +0200 Subject: [PATCH] python2: Fix on non-Linux The location of this 'regen' script (whatever is does) depends on the platform. AFAICT it always exists due to this: $(srcdir)/Lib/$(PLATDIR): mkdir $(srcdir)/Lib/$(PLATDIR) cp $(srcdir)/Lib/plat-generic/regen $(srcdir)/Lib/$(PLATDIR)/regen --- pkgs/development/interpreters/python/2.7/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/interpreters/python/2.7/default.nix b/pkgs/development/interpreters/python/2.7/default.nix index 31839d24754..f1ae897ea4a 100644 --- a/pkgs/development/interpreters/python/2.7/default.nix +++ b/pkgs/development/interpreters/python/2.7/default.nix @@ -143,7 +143,7 @@ let ${optionalString includeModules "$out/bin/python ./setup.py build_ext"} - ${optionalString stdenv.isLinux ''rm "$out"/lib/python*/plat-linux2/regen # refers to glibc.dev''} + rm "$out"/lib/python*/plat-*/regen # refers to glibc.dev ''; passthru = rec {