summary refs log tree commit diff
path: root/pkgs/applications/version-management/reposurgeon
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2016-08-14 12:01:09 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2016-08-14 12:01:09 +0200
commit11d1fdfd8bf5411218571ef9fb9441705b23c459 (patch)
tree2833140b5b35d367e92105f8cc85fd99f0bebcf9 /pkgs/applications/version-management/reposurgeon
parent9fc37cc89cdbe183b3bf613035e45c793989575d (diff)
downloadnixpkgs-11d1fdfd8bf5411218571ef9fb9441705b23c459.tar
nixpkgs-11d1fdfd8bf5411218571ef9fb9441705b23c459.tar.gz
nixpkgs-11d1fdfd8bf5411218571ef9fb9441705b23c459.tar.bz2
nixpkgs-11d1fdfd8bf5411218571ef9fb9441705b23c459.tar.lz
nixpkgs-11d1fdfd8bf5411218571ef9fb9441705b23c459.tar.xz
nixpkgs-11d1fdfd8bf5411218571ef9fb9441705b23c459.tar.zst
nixpkgs-11d1fdfd8bf5411218571ef9fb9441705b23c459.zip
Remove top-level cython and cython3
See #11567.
Diffstat (limited to 'pkgs/applications/version-management/reposurgeon')
-rw-r--r--pkgs/applications/version-management/reposurgeon/default.nix22
1 files changed, 12 insertions, 10 deletions
diff --git a/pkgs/applications/version-management/reposurgeon/default.nix b/pkgs/applications/version-management/reposurgeon/default.nix
index 55858034b1c..2408621b9cf 100644
--- a/pkgs/applications/version-management/reposurgeon/default.nix
+++ b/pkgs/applications/version-management/reposurgeon/default.nix
@@ -1,11 +1,13 @@
-{stdenv, fetchurl, makeWrapper, python27, python27Packages, git,
- docbook_xml_dtd_412, docbook_xml_xslt, asciidoc, xmlto,
- cython ? null,
- bazaar ? null, cvs ? null, darcs ? null, fossil ? null,
- mercurial ? null, monotone ? null, rcs ? null, src ? null,
- subversion ? null, cvs_fast_export ? null }:
+{ stdenv, fetchurl, makeWrapper, python27Packages, git
+, docbook_xml_dtd_412, docbook_xml_xslt, asciidoc, xmlto
+, bazaar ? null, cvs ? null, darcs ? null, fossil ? null
+, mercurial ? null, monotone ? null, rcs ? null, src ? null
+, subversion ? null, cvs_fast_export ? null }:
+
 with stdenv; with lib;
-mkDerivation rec {
+let
+  inherit (python27Packages) python cython;
+in mkDerivation rec {
   name = "reposurgeon-${meta.version}";
   meta = {
     description = "A tool for editing version-control repository history";
@@ -33,8 +35,8 @@ mkDerivation rec {
     makeFlagsArray=(
       XML_CATALOG_FILES="${docbook_xml_dtd_412}/xml/dtd/docbook/catalog.xml ${docbook_xml_xslt}/xml/xsl/docbook/catalog.xml"
       prefix="$out"
-      pyinclude="-I${python27}/include/python2.7"
-      pylib="-L${python27}/lib -lpython2.7"
+      pyinclude="-I${python}/include/python2.7"
+      pylib="-L${python}/lib -lpython2.7"
     )
   '';
 
@@ -51,7 +53,7 @@ mkDerivation rec {
         [ out git bazaar cvs darcs fossil mercurial
           monotone rcs src subversion cvs_fast_export ]
       );
-      pythonpath = makeSearchPathOutput "lib" python27.sitePackages (
+      pythonpath = makeSearchPathOutput "lib" python.sitePackages (
         filter (x: x != null)
         [ python27Packages.readline or null python27Packages.hglib or null ]
       );