use dontBuild instead of hacks

changes:
* buildPhase = "true"
* buildPhase = ":"

+263 -277
+1 -1
pkgs/applications/audio/baudline/default.nix
··· 29 29 # Prebuilt binary distribution. 30 30 # "patchelf --set-rpath" seems to break the application (cannot start), using 31 31 # LD_LIBRARY_PATH wrapper script instead. 32 - buildPhase = "true"; 32 + dontBuild = true; 33 33 installPhase = '' 34 34 mkdir -p "$out/bin" 35 35 mkdir -p "$out/libexec/baudline"
+1 -4
pkgs/applications/audio/faust/faust1.nix
··· 25 25 }; 26 26 27 27 faust = stdenv.mkDerivation { 28 - 29 28 name = "faust-${version}"; 30 29 31 30 inherit src; ··· 107 106 108 107 inherit src; 109 108 110 - configurePhase = ":"; 111 - 112 - buildPhase = ":"; 109 + dontBuild = true; 113 110 114 111 installPhase = '' 115 112 runHook preInstall
+1 -3
pkgs/applications/audio/faust/faust2.nix
··· 132 132 133 133 inherit src; 134 134 135 - configurePhase = ":"; 136 - 137 - buildPhase = ":"; 135 + dontBuild = true; 138 136 139 137 installPhase = '' 140 138 runHook preInstall
+2 -13
pkgs/applications/graphics/sane/backends/brscan4/default.nix
··· 1 1 { stdenv, fetchurl, callPackage, patchelf, makeWrapper, coreutils, libusb }: 2 2 3 - /* 4 - 5 - 6 - */ 7 - 8 3 let 9 - 10 4 myPatchElf = file: with stdenv.lib; '' 11 5 patchelf --set-interpreter \ 12 6 ${stdenv.glibc}/lib/ld-linux${optionalString stdenv.is64bit "-x86-64"}.so.2 \ ··· 15 9 16 10 udevRules = callPackage ./udev_rules_type1.nix {}; 17 11 18 - in 19 - 20 - stdenv.mkDerivation rec { 21 - 12 + in stdenv.mkDerivation rec { 22 13 name = "brscan4-0.4.3-3"; 23 14 src = fetchurl { 24 15 url = "http://download.brother.com/welcome/dlf006645/${name}.amd64.deb"; ··· 32 23 33 24 nativeBuildInputs = [ makeWrapper patchelf coreutils udevRules ]; 34 25 buildInputs = [ libusb ]; 35 - buildPhase = ":"; 36 - 26 + dontBuild = true; 37 27 38 28 patchPhase = '' 39 29 ${myPatchElf "opt/brother/scanner/brscan4/brsaneconfig4"} ··· 47 37 ''; 48 38 49 39 installPhase = '' 50 - 51 40 PATH_TO_BRSCAN4="opt/brother/scanner/brscan4" 52 41 mkdir -p $out/$PATH_TO_BRSCAN4 53 42 cp -rp $PATH_TO_BRSCAN4/* $out/$PATH_TO_BRSCAN4
+2 -7
pkgs/applications/graphics/sane/backends/brscan4/udev_rules_type1.nix
··· 1 1 { stdenv, fetchurl, libsaneUDevRuleNumber ? "49"}: 2 2 3 - 4 3 stdenv.mkDerivation rec { 5 - 6 4 name = "brother-udev-rule-type1-1.0.0-1"; 7 5 8 6 src = fetchurl { ··· 10 8 sha256 = "0i0x5jw135pli4jl9mgnr5n2rrdvml57nw84yq2999r4frza53xi"; 11 9 }; 12 10 13 - buildInputs = [ ]; 11 + dontBuild = true; 14 12 15 13 unpackPhase = '' 16 14 ar x $src ··· 37 35 sed -i -e s/SYSFS/ATTR/g opt/brother/scanner/udev-rules/type1/*.rules 38 36 ''; 39 37 40 - 41 - buildPhase = ":"; 42 - 43 38 installPhase = '' 44 39 mkdir -p $out/etc/udev/rules.d 45 40 cp opt/brother/scanner/udev-rules/type1/NN-brother-mfp-type1.rules \ ··· 57 52 license = stdenv.lib.licenses.unfree; 58 53 maintainers = with stdenv.lib.maintainers; [ jraygauthier ]; 59 54 }; 60 - } 55 + }
+2 -2
pkgs/applications/misc/jbidwatcher/default.nix
··· 15 15 16 16 jarfile = "$out/share/java/${pname}/JBidwatcher.jar"; 17 17 18 - unpackPhase = "true"; 18 + # unpackPhase = "true"; 19 19 20 - buildPhase = "true"; 20 + dontBuild = true; 21 21 22 22 installPhase = '' 23 23 mkdir -p "$out/bin"
+1 -1
pkgs/applications/misc/terminal-notifier/default.nix
··· 10 10 sha256 = "09x7vl0kddivqq3pyrk6sg1f0sv5l7nj0bmblq222zk3b09bgg8p"; 11 11 }; 12 12 13 - buildPhase = "true"; 13 + dontBuild = true; 14 14 15 15 installPhase = '' 16 16 mkdir -p $out/Applications
+1 -1
pkgs/applications/version-management/cvs2svn/default.nix
··· 10 10 11 11 buildInputs = [python makeWrapper]; 12 12 13 - buildPhase = "true"; 13 + dontBuild = true; 14 14 installPhase = '' 15 15 python ./setup.py install --prefix=$out 16 16 for i in bzr svn git; do
+1 -1
pkgs/applications/version-management/git-and-tools/fast-export/default.nix
··· 12 12 13 13 buildInputs = [mercurial.python mercurial makeWrapper subversion]; 14 14 15 - buildPhase="true"; # skip svn for now 15 + dontBuild = true; # skip svn for now 16 16 17 17 # TODO also support svn stuff 18 18 # moving .py files into lib directory so that you can't pick the wrong file from PATH.
+12 -13
pkgs/applications/version-management/git-and-tools/svn2git/default.nix
··· 13 13 14 14 buildInputs = [ ruby makeWrapper ]; 15 15 16 - buildPhase = "true"; 16 + dontBuild = true; 17 17 18 - installPhase = 19 - '' 20 - mkdir -p $out 21 - cp -r lib $out/ 18 + installPhase = '' 19 + mkdir -p $out 20 + cp -r lib $out/ 22 21 23 - mkdir -p $out/bin 24 - substituteInPlace bin/svn2git --replace '/usr/bin/env ruby' ${ruby}/bin/ruby 25 - cp bin/svn2git $out/bin/ 26 - chmod +x $out/bin/svn2git 22 + mkdir -p $out/bin 23 + substituteInPlace bin/svn2git --replace '/usr/bin/env ruby' ${ruby}/bin/ruby 24 + cp bin/svn2git $out/bin/ 25 + chmod +x $out/bin/svn2git 27 26 28 - wrapProgram $out/bin/svn2git \ 29 - --set RUBYLIB $out/lib \ 30 - --prefix PATH : ${git}/bin 31 - ''; 27 + wrapProgram $out/bin/svn2git \ 28 + --set RUBYLIB $out/lib \ 29 + --prefix PATH : ${git}/bin 30 + ''; 32 31 33 32 meta = { 34 33 homepage = https://github.com/nirvdrum/svn2git;
+2 -1
pkgs/applications/version-management/gitolite/default.nix
··· 10 10 }; 11 11 12 12 buildInputs = [ git nettools perl ]; 13 - buildPhase = "true"; 13 + 14 + dontBuild = true; 14 15 15 16 patchPhase = '' 16 17 substituteInPlace ./install --replace " 2>/dev/null" ""
+1 -1
pkgs/data/fonts/aurulent-sans/default.nix
··· 9 9 sha256 = "01hvpvbrks40g9k1xr2f1gxnd5wd0sxidgfbwrm94pdi1a36xxrk"; 10 10 }; 11 11 12 - buildPhase = "true"; 12 + dontBuild = true; 13 13 14 14 installPhase = '' 15 15 fontDir=$out/share/fonts/opentype
+8 -4
pkgs/data/fonts/bakoma-ttf/default.nix
··· 2 2 3 3 stdenv.mkDerivation { 4 4 name = "bakoma-ttf"; 5 - 5 + 6 6 src = fetchurl { 7 7 url = http://tarballs.nixos.org/bakoma-ttf.tar.bz2; 8 8 sha256 = "1j1y3cq6ys30m734axc0brdm2q9n2as4h32jws15r7w5fwr991km"; 9 9 }; 10 - 11 - buildPhase = "true"; 12 - installPhase = "mkdir -p $out/share/fonts/truetype; cp ttf/*.ttf $out/share/fonts/truetype"; 10 + 11 + dontBuild = true; 12 + 13 + installPhase = '' 14 + mkdir -p $out/share/fonts/truetype 15 + cp ttf/*.ttf $out/share/fonts/truetype 16 + ''; 13 17 14 18 meta = { 15 19 description = "TrueType versions of the Computer Modern and AMS TeX Fonts";
+1 -2
pkgs/data/fonts/dosemu-fonts/default.nix
··· 9 9 sha256 = "0l1zwmw42mpakjrzmbygshcg2qzq9mv8lx42738rz3j9hrqzg4pw"; 10 10 }; 11 11 12 - configurePhase = "true"; 13 - buildPhase = "true"; 12 + dontBuild = true; 14 13 15 14 buildInputs = [bdftopcf mkfontdir mkfontscale]; 16 15
+13 -14
pkgs/data/fonts/powerline-fonts/default.nix
··· 10 10 sha256 = "1pwz83yh28yd8aj6fbyfz8z3q3v67psszpd9mp4vv0ms9w8b5ajn"; 11 11 }; 12 12 13 - buildPhase = "true"; 13 + dontBuild = true; 14 14 15 - installPhase = 16 - '' 17 - mkdir -p $out/share/fonts/opentype 18 - cp -v */*.otf $out/share/fonts/opentype 15 + installPhase = '' 16 + mkdir -p $out/share/fonts/opentype 17 + cp -v */*.otf $out/share/fonts/opentype 19 18 20 - mkdir -p $out/share/fonts/truetype 21 - cp -v */*.ttf $out/share/fonts/truetype 19 + mkdir -p $out/share/fonts/truetype 20 + cp -v */*.ttf $out/share/fonts/truetype 22 21 23 - mkdir -p $out/share/fonts/bdf 24 - cp -v */BDF/*.bdf $out/share/fonts/bdf 22 + mkdir -p $out/share/fonts/bdf 23 + cp -v */BDF/*.bdf $out/share/fonts/bdf 25 24 26 - mkdir -p $out/share/fonts/pcf 27 - cp -v */PCF/*.pcf.gz $out/share/fonts/pcf 25 + mkdir -p $out/share/fonts/pcf 26 + cp -v */PCF/*.pcf.gz $out/share/fonts/pcf 28 27 29 - mkdir -p $out/share/fonts/psf 30 - cp -v */PSF/*.psf.gz $out/share/fonts/psf 31 - ''; 28 + mkdir -p $out/share/fonts/psf 29 + cp -v */PSF/*.psf.gz $out/share/fonts/psf 30 + ''; 32 31 33 32 meta = with stdenv.lib; { 34 33 homepage = https://github.com/powerline/fonts;
+3 -3
pkgs/data/fonts/ttf-bitstream-vera/default.nix
··· 8 8 sha256 = "1p3qs51x5327gnk71yq8cvmxc6wgx79sqxfvxcv80cdvgggjfnyv"; 9 9 }; 10 10 11 - buildPhase = "true"; 11 + dontBuild = true; 12 12 13 - installPhase = " 13 + installPhase = '' 14 14 fontDir=$out/share/fonts/truetype 15 15 mkdir -p $fontDir 16 16 cp *.ttf $fontDir 17 - "; 17 + ''; 18 18 }
+6 -6
pkgs/data/fonts/vista-fonts/default.nix
··· 2 2 3 3 stdenv.mkDerivation { 4 4 name = "vista-fonts-1"; 5 - 5 + 6 6 src = fetchurl { 7 7 url = http://download.microsoft.com/download/f/5/a/f5a3df76-d856-4a61-a6bd-722f52a5be26/PowerPointViewer.exe; 8 8 sha256 = "07vhjdw8iip7gxk6wvp4myhvbn9619g10j9qvpbzz4ihima57ry4"; ··· 10 10 11 11 buildInputs = [cabextract]; 12 12 13 - unpackPhase = " 13 + unpackPhase = '' 14 14 cabextract --lowercase --filter ppviewer.cab $src 15 15 cabextract --lowercase --filter '*.TTF' ppviewer.cab 16 16 sourceRoot=. 17 - "; 18 - 19 - buildPhase = "true"; 20 - 17 + ''; 18 + 19 + dontBuild = true; 20 + 21 21 installPhase = '' 22 22 mkdir -p $out/share/fonts/truetype 23 23 cp *.ttf $out/share/fonts/truetype
+10 -11
pkgs/data/sgml+xml/stylesheets/xslt/docbook-xsl/default.nix
··· 10 10 inherit sha256; 11 11 }; 12 12 13 - buildPhase = "true"; 13 + dontBuild = true; 14 14 15 - installPhase = 16 - '' 17 - dst=$out/share/xml/${pname} 18 - mkdir -p $dst 19 - rm -rf RELEASE* README* INSTALL TODO NEWS* BUGS install.sh svn* tools log Makefile tests extensions webhelp 20 - mv * $dst/ 15 + installPhase = '' 16 + dst=$out/share/xml/${pname} 17 + mkdir -p $dst 18 + rm -rf RELEASE* README* INSTALL TODO NEWS* BUGS install.sh svn* tools log Makefile tests extensions webhelp 19 + mv * $dst/ 21 20 22 - # Backwards compatibility. Will remove eventually. 23 - mkdir -p $out/xml/xsl 24 - ln -s $dst $out/xml/xsl/docbook 25 - ''; 21 + # Backwards compatibility. Will remove eventually. 22 + mkdir -p $out/xml/xsl 23 + ln -s $dst $out/xml/xsl/docbook 24 + ''; 26 25 27 26 meta = { 28 27 homepage = http://wiki.docbook.org/topic/DocBookXslStylesheets;
+1 -1
pkgs/development/compilers/ghc/6.10.2-binary.nix
··· 56 56 57 57 # No building is necessary, but calling make without flags ironically 58 58 # calls install-strip ... 59 - buildPhase = "true"; 59 + dontBuild = true; 60 60 61 61 # The binaries for Darwin use frameworks, so fake those frameworks, 62 62 # and create some wrapper scripts that set DYLD_FRAMEWORK_PATH so
+1 -1
pkgs/development/compilers/ghc/7.0.4-binary.nix
··· 99 99 100 100 # No building is necessary, but calling make without flags ironically 101 101 # calls install-strip ... 102 - buildPhase = "true"; 102 + dontBuild = true; 103 103 104 104 postInstall = 105 105 ''
+1 -1
pkgs/development/compilers/ghc/7.4.2-binary.nix
··· 101 101 102 102 # No building is necessary, but calling make without flags ironically 103 103 # calls install-strip ... 104 - buildPhase = "true"; 104 + dontBuild = true; 105 105 106 106 preInstall = stdenv.lib.optionalString stdenv.isDarwin '' 107 107 mkdir -p $out/lib/ghc-7.4.2
+1 -2
pkgs/development/libraries/fmod/4.24.16.nix
··· 29 29 30 30 dontStrip = true; 31 31 dontPatchELF = true; 32 + dontBuild = true; 32 33 33 34 makeFlags = [ "DESTLIBDIR=$(out)/lib" "DESTHDRDIR=$(out)/include" ]; 34 - 35 - buildPhase = "true"; 36 35 37 36 preInstall = '' 38 37 mkdir -p $out/lib
+2 -1
pkgs/development/libraries/fmod/default.nix
··· 18 18 }; 19 19 20 20 dontStrip = true; 21 - buildPhase = "true"; 21 + dontBuild = true; 22 + 22 23 installPhase = '' 23 24 mkdir -p $out/lib $out/include/fmodex 24 25
+5 -10
pkgs/development/libraries/libspotify/default.nix
··· 1 1 { stdenv, fetchurl, libspotify, alsaLib, readline, pkgconfig, apiKey, unzip, gnused }: 2 2 3 - let 4 - version = "12.1.51"; 3 + let 4 + version = "12.1.51"; 5 5 isLinux = (stdenv.system == "x86_64-linux" || stdenv.system == "i686-linux"); 6 6 in 7 7 ··· 29 29 else 30 30 null; 31 31 32 - # common 33 - buildPhase = "true"; 34 - # no patch or build phase for darwin 35 - phases = 36 - [ "unpackPhase" ] ++ 37 - (stdenv.lib.optionals (isLinux) [ "patchPhase" "buildPhase" ]) ++ 38 - [ "installPhase" ]; 32 + dontBuild = true; 33 + 39 34 installPhase = if (isLinux) 40 35 then "installPhase" 41 36 else '' ··· 48 43 mkdir -p "$out"/share/man 49 44 mv -v man3 "$out"/share/man 50 45 ''; 51 - 46 + 52 47 53 48 # darwin-specific 54 49 buildInputs = stdenv.lib.optional (stdenv.system == "x86_64-darwin") unzip;
+1 -1
pkgs/development/libraries/uthash/default.nix
··· 11 11 sha256 = "035z3cs5ignywgh4wqxx358a2nhn3lj0x1ifij6vj0yyyhah3wgj"; 12 12 }; 13 13 14 - buildPhase = ":"; 14 + dontBuild = false; 15 15 16 16 buildInputs = stdenv.lib.optional doCheck perl; 17 17
+4 -1
pkgs/development/libraries/xlibs-wrapper/default.nix
··· 2 2 3 3 stdenv.mkDerivation { 4 4 name = "xlibs-wrapper"; 5 - buildPhase = "true"; 5 + 6 + dontBuild = true; 7 + 6 8 installPhase = "mkdir -p $out"; 7 9 unpackPhase = "sourceRoot=."; 10 + 8 11 propagatedBuildInputs = packages; 9 12 10 13 preferLocalBuild = true;
+42 -42
pkgs/development/mobile/titaniumenv/cli/node-env.nix
··· 4 4 # Function that generates a TGZ file from a NPM project 5 5 buildNodeSourceDist = 6 6 { name, version, src }: 7 - 7 + 8 8 stdenv.mkDerivation { 9 9 name = "node-tarball-${name}-${version}"; 10 10 inherit src; ··· 30 30 sha1 = "77466de589cd5d3c95f138aa78bc569a3cb5d27a"; 31 31 }; 32 32 } {}; 33 - 33 + 34 34 # Function that produces a deployed NPM package in the Nix store 35 35 buildNodePackage = 36 36 { name, version, src, dependencies ? {}, buildInputs ? [], production ? true, npmFlags ? "", meta ? {}, linkDependencies ? false }: ··· 42 42 # 43 43 # It uses the semver utility to check whether a version range matches any 44 44 # of the provided dependencies. 45 - 46 - analysedDependencies = 45 + 46 + analysedDependencies = 47 47 if dependencies == {} then {} 48 48 else 49 49 import (stdenv.mkDerivation { ··· 63 63 let 64 64 providedDependency = builtins.getAttr dependencyName providedDependencies; 65 65 versions = builtins.attrNames providedDependency; 66 - 66 + 67 67 # If there is a version range match, add the dependency to 68 68 # the set of shimmed dependencies. 69 69 # Otherwise, it is a required dependency. 70 70 in 71 71 '' 72 72 $(latestVersion=$(semver -r '${versionSpec}' ${stdenv.lib.concatMapStrings (version: " '${version}'") versions} | tail -1 | tr -d '\n') 73 - 73 + 74 74 if semver -r '${versionSpec}' ${stdenv.lib.concatMapStrings (version: " '${version}'") versions} >/dev/null 75 75 then 76 76 echo "shimmedDependencies.\"${dependencyName}\".\"$latestVersion\" = true;" ··· 86 86 EOF 87 87 ''; 88 88 }); 89 - 89 + 90 90 requiredDependencies = analysedDependencies.requiredDependencies or {}; 91 91 shimmedDependencies = analysedDependencies.shimmedDependencies or {}; 92 92 ··· 95 95 tar --no-same-owner --no-same-permissions -xf ${nodejs.src} 96 96 mv node-* $out 97 97 ''; 98 - 98 + 99 99 # Compose dependency information that this package must propagate to its 100 100 # dependencies, so that provided dependencies are not included a second time. 101 101 # This prevents cycles and wildcard version mismatches. 102 - 102 + 103 103 propagatedProvidedDependencies = 104 104 (stdenv.lib.mapAttrs (dependencyName: dependency: 105 105 builtins.listToAttrs (map (versionSpec: ··· 110 110 ) dependencies) // 111 111 providedDependencies // 112 112 { "${name}"."${version}" = true; }; 113 - 113 + 114 114 # Create a node_modules folder containing all required dependencies of the 115 115 # package 116 - 116 + 117 117 nodeDependencies = stdenv.mkDerivation { 118 118 name = "node-dependencies-${name}-${version}"; 119 119 inherit src; 120 120 buildCommand = '' 121 121 mkdir -p $out/lib/node_modules 122 122 cd $out/lib/node_modules 123 - 123 + 124 124 # Create copies of (or symlinks to) the dependencies that must be deployed in this package's private node_modules folder. 125 125 # This package's private dependencies are NPM packages that have not been provided by any of the includers. 126 - 126 + 127 127 ${stdenv.lib.concatMapStrings (requiredDependencyName: 128 128 stdenv.lib.concatMapStrings (versionSpec: 129 129 let ··· 133 133 in 134 134 '' 135 135 depPath=$(echo ${dependency}/lib/node_modules/*) 136 - 136 + 137 137 ${if linkDependencies then '' 138 138 ln -s $depPath . 139 139 '' else '' ··· 144 144 ) (builtins.attrNames requiredDependencies)} 145 145 ''; 146 146 }; 147 - 147 + 148 148 # Deploy the Node package with some tricks 149 149 self = stdenv.lib.makeOverridable stdenv.mkDerivation { 150 150 inherit src meta; 151 151 dontStrip = true; 152 - 152 + 153 153 name = "node-${name}-${version}"; 154 154 buildInputs = [ nodejs python ] ++ stdenv.lib.optional (stdenv.isLinux) utillinux ++ buildInputs; 155 - buildPhase = "true"; 156 - 155 + dontBuild = true; 156 + 157 157 installPhase = '' 158 158 # Move the contents of the tarball into the output folder 159 159 mkdir -p "$out/lib/node_modules/${name}" 160 160 mv * "$out/lib/node_modules/${name}" 161 - 161 + 162 162 # Enter the target directory 163 163 cd "$out/lib/node_modules/${name}" 164 - 164 + 165 165 # Patch the shebangs of the bundled modules. For "regular" dependencies 166 166 # this is step is not required, because it has already been done by the generic builder. 167 - 167 + 168 168 if [ -d node_modules ] 169 169 then 170 170 patchShebangs node_modules 171 171 fi 172 - 172 + 173 173 # Copy the required dependencies 174 174 mkdir -p node_modules 175 - 175 + 176 176 ${stdenv.lib.optionalString (requiredDependencies != {}) '' 177 177 for i in ${nodeDependencies}/lib/node_modules/* 178 178 do ··· 182 182 fi 183 183 done 184 184 ''} 185 - 185 + 186 186 # Create shims for the packages that have been provided by earlier includers to allow the NPM install operation to still succeed 187 - 187 + 188 188 ${stdenv.lib.concatMapStrings (shimmedDependencyName: 189 189 stdenv.lib.concatMapStrings (versionSpec: 190 190 '' ··· 198 198 '' 199 199 ) (builtins.attrNames (shimmedDependencies."${shimmedDependencyName}")) 200 200 ) (builtins.attrNames shimmedDependencies)} 201 - 201 + 202 202 # Ignore npm-shrinkwrap.json for now. Ideally, it should be supported as well 203 203 rm -f npm-shrinkwrap.json 204 - 204 + 205 205 # Some version specifiers (latest, unstable, URLs, file paths) force NPM to make remote connections or consult paths outside the Nix store. 206 206 # The following JavaScript replaces these by * to prevent that: 207 - 207 + 208 208 ( 209 209 cat <<EOF 210 210 var fs = require('fs'); 211 211 var url = require('url'); 212 - 212 + 213 213 /* 214 214 * Replaces an impure version specification by * 215 215 */ 216 216 function replaceImpureVersionSpec(versionSpec) { 217 217 var parsedUrl = url.parse(versionSpec); 218 - 218 + 219 219 if(versionSpec == "latest" || versionSpec == "unstable" || 220 220 versionSpec.substr(0, 2) == ".." || dependency.substr(0, 2) == "./" || dependency.substr(0, 2) == "~/" || dependency.substr(0, 1) == '/') 221 221 return '*'; ··· 225 225 else 226 226 return versionSpec; 227 227 } 228 - 228 + 229 229 var packageObj = JSON.parse(fs.readFileSync('./package.json')); 230 - 230 + 231 231 /* Replace dependencies */ 232 232 if(packageObj.dependencies !== undefined) { 233 233 for(var dependency in packageObj.dependencies) { ··· 235 235 packageObj.dependencies[dependency] = replaceImpureVersionSpec(versionSpec); 236 236 } 237 237 } 238 - 238 + 239 239 /* Replace development dependencies */ 240 240 if(packageObj.devDependencies !== undefined) { 241 241 for(var dependency in packageObj.devDependencies) { ··· 243 243 packageObj.devDependencies[dependency] = replaceImpureVersionSpec(versionSpec); 244 244 } 245 245 } 246 - 246 + 247 247 /* Replace optional dependencies */ 248 248 if(packageObj.optionalDependencies !== undefined) { 249 249 for(var dependency in packageObj.optionalDependencies) { ··· 251 251 packageObj.optionalDependencies[dependency] = replaceImpureVersionSpec(versionSpec); 252 252 } 253 253 } 254 - 254 + 255 255 /* Write the fixed JSON file */ 256 256 fs.writeFileSync("package.json", JSON.stringify(packageObj)); 257 257 EOF 258 258 ) | node 259 - 259 + 260 260 # Deploy the Node.js package by running npm install. Since the dependencies have been symlinked, it should not attempt to install them again, 261 261 # which is good, because we want to make it Nix's responsibility. If it needs to install any dependencies anyway (e.g. because the dependency 262 262 # parameters are incomplete/incorrect), it fails. 263 - 263 + 264 264 export HOME=$TMPDIR 265 265 npm --registry http://www.example.com --nodedir=${nodeSources} ${npmFlags} ${stdenv.lib.optionalString production "--production"} install 266 - 266 + 267 267 # After deployment of the NPM package, we must remove the shims again 268 268 ${stdenv.lib.concatMapStrings (shimmedDependencyName: 269 269 '' ··· 271 271 rmdir node_modules/${shimmedDependencyName} 272 272 '' 273 273 ) (builtins.attrNames shimmedDependencies)} 274 - 274 + 275 275 # It makes no sense to keep an empty node_modules folder around, so delete it if this is the case 276 276 if [ -d node_modules ] 277 277 then 278 278 rmdir --ignore-fail-on-non-empty node_modules 279 279 fi 280 - 280 + 281 281 # Create symlink to the deployed executable folder, if applicable 282 282 if [ -d "$out/lib/node_modules/.bin" ] 283 283 then 284 284 ln -s $out/lib/node_modules/.bin $out/bin 285 285 fi 286 - 286 + 287 287 # Create symlinks to the deployed manual page folders, if applicable 288 288 if [ -d "$out/lib/node_modules/${name}/man" ] 289 289 then ··· 298 298 done 299 299 fi 300 300 ''; 301 - 301 + 302 302 shellHook = stdenv.lib.optionalString (requiredDependencies != {}) '' 303 303 export NODE_PATH=${nodeDependencies}/lib/node_modules 304 304 '';
+13 -6
pkgs/development/python-modules/stringtemplate/default.nix
··· 3 3 stdenv.mkDerivation rec { 4 4 name = "PyStringTemplate-${version}"; 5 5 version = "3.2b1"; 6 - meta = { 7 - homepage = "http://www.stringtemplate.org/"; 8 - description = "Text Templating Library"; 9 - }; 6 + 10 7 src = fetchurl { 11 8 url = "http://www.stringtemplate.org/download/${name}.tar.gz"; 12 9 sha256 = "0lbib0l8c1q7i1j610rwcdagymr1idahrql4dkgnm5rzyg2vk3ml"; 13 10 }; 11 + 14 12 propagatedBuildInputs = [python antlr]; 15 - buildPhase = "true"; 16 - installPhase = "python setup.py install --prefix=$out --install-lib=$(toPythonPath $out) -O1"; 13 + 14 + dontBuild = true; 15 + 16 + installPhase = '' 17 + python setup.py install --prefix=$out --install-lib=$(toPythonPath $out) -O1 18 + ''; 19 + 20 + meta = { 21 + homepage = "http://www.stringtemplate.org/"; 22 + description = "Text Templating Library"; 23 + }; 17 24 }
+2 -1
pkgs/development/tools/analysis/clang-analyzer/default.nix
··· 11 11 12 12 patches = [ ./0001-Fix-scan-build-to-use-NIX_CFLAGS_COMPILE.patch ]; 13 13 buildInputs = [ clang llvmPackages.clang perl makeWrapper ]; 14 - buildPhase = "true"; 14 + 15 + dontBuild = true; 15 16 16 17 installPhase = '' 17 18 mkdir -p $out/bin $out/libexec
+1 -1
pkgs/development/tools/build-managers/gradle/default.nix
··· 4 4 gradleGen = {name, src} : stdenv.mkDerivation rec { 5 5 inherit name src; 6 6 7 - buildPhase = ":"; 7 + dontBuild = true; 8 8 9 9 installPhase = '' 10 10 mkdir -pv $out/lib/gradle/
+6 -2
pkgs/development/tools/misc/sqitch/default.nix
··· 1 1 { name, stdenv, perl, makeWrapper, sqitchModule, databaseModule }: 2 + 2 3 stdenv.mkDerivation { 3 4 name = "${name}-${sqitchModule.version}"; 5 + 4 6 buildInputs = [ perl makeWrapper sqitchModule databaseModule ]; 5 - unpackPhase = ":"; 6 - buildPhase = ":"; 7 + 8 + src = sqitchModule; 9 + dontBuild = true; 10 + 7 11 installPhase = '' 8 12 mkdir -p $out/bin 9 13 for d in bin/sqitch etc lib share ; do
+1 -1
pkgs/development/web/grails/default.nix
··· 19 19 20 20 buildInputs = [ unzip ]; 21 21 22 - buildPhase = "true"; 22 + dontBuild = true; 23 23 24 24 installPhase = '' 25 25 mkdir -p "$out"
+4 -5
pkgs/misc/cups/drivers/brgenml1cupswrapper/default.nix
··· 9 9 10 10 Logging 11 11 ------- 12 - 12 + 13 13 `/tmp/br_cupswrapper_ml1.log` when `DEBUG > 0` in `brother_lpdwrapper_BrGenML1`. 14 14 Note that when `DEBUG > 1` the wrapper stops performing its function. Better 15 15 keep `DEBUG == 1` unless this is desirable. ··· 29 29 Fixed. 30 30 31 31 3. > perl: warning: Falling back to the standard locale ("C"). 32 - 32 + 33 33 are supported and installed on your system. 34 34 LANG = "en_US.UTF-8" 35 35 LC_ALL = (unset), ··· 67 67 nativeBuildInputs = [ makeWrapper ]; 68 68 buildInputs = [ cups perl coreutils gnused gnugrep brgenml1lpr ]; 69 69 70 - configurePhase = ":"; 71 - buildPhase = ":"; 70 + dontBuild = true; 72 71 73 72 patchPhase = '' 74 73 WRAPPER=opt/brother/Printers/BrGenML1/cupswrapper/brother_lpdwrapper_BrGenML1 75 - PAPER_CFG=opt/brother/Printers/BrGenML1/cupswrapper/paperconfigml1 74 + PAPER_CFG=opt/brother/Printers/BrGenML1/cupswrapper/paperconfigml1 76 75 77 76 substituteInPlace $WRAPPER \ 78 77 --replace "basedir =~" "basedir = \"${brgenml1lpr}/opt/brother/Printers/BrGenML1\"; #" \
+4 -4
pkgs/misc/cups/drivers/brgenml1lpr/default.nix
··· 8 8 9 9 Logging 10 10 ------- 11 - 11 + 12 12 `/tmp/br_lpdfilter_ml1.log` when `$ENV{LPD_DEBUG} > 0` in `filter_BrGenML1` 13 13 which is activated automatically when `DEBUG > 0` in `brother_lpdwrapper_BrGenML1` 14 14 from the cups wrapper. ··· 17 17 ------ 18 18 19 19 - filter_BrGenML1 ln 196 `my $GHOST_SCRIPT=`which gs`;` 20 - 20 + 21 21 `GHOST_SCRIPT` is empty resulting in an empty `/tmp/br_lpdfilter_ml1_gsout.dat` file. 22 22 See `/tmp/br_lpdfilter_ml1.log` for the executed command. 23 23 ··· 49 49 50 50 nativeBuildInputs = [ makeWrapper ]; 51 51 buildInputs = [ cups perl glibc ghostscript which ]; 52 - 53 - buildPhase = ":"; 52 + 53 + dontBuild = true; 54 54 55 55 patchPhase = '' 56 56 INFDIR=opt/brother/Printers/BrGenML1/inf
+2 -2
pkgs/os-specific/darwin/install_name_tool/default.nix
··· 5 5 stdenv.mkDerivation { 6 6 name = "install_name_tool"; 7 7 src = "/usr/bin/install_name_tool"; 8 + 8 9 unpackPhase = "true"; 9 - configurePhase = "true"; 10 - buildPhase = "true"; 10 + dontBuild = true; 11 11 12 12 installPhase = '' 13 13 mkdir -p "$out"/bin
+2 -3
pkgs/os-specific/darwin/osx-sdk/default.nix
··· 7 7 8 8 src = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk"; 9 9 10 - unpackPhase = "true"; 11 - configurePhase = "true"; 12 - buildPhase = "true"; 10 + unpackPhase = "true"; 11 + dontBuild = true; 13 12 14 13 installPhase = '' 15 14 mkdir -p $out/Developer/SDKs/
+1 -1
pkgs/os-specific/gnu/hurd/default.nix
··· 87 87 // 88 88 89 89 (if headersOnly 90 - then { buildPhase = ":"; installPhase = "make install-headers"; } 90 + then { dontBuild = true; installPhase = "make install-headers"; } 91 91 else (if (cross != null) 92 92 then { 93 93 crossConfig = cross.config;
+1 -1
pkgs/os-specific/gnu/libpthread/default.nix
··· 46 46 "ac_cv_lib_ihash_hurd_ihash_create=yes" 47 47 ]; 48 48 49 - buildPhase = ":"; 49 + dontBuild = true; 50 50 installPhase = "make install-data-local-headers"; 51 51 } 52 52 else { })
+1 -1
pkgs/os-specific/gnu/mach/default.nix
··· 53 53 // 54 54 55 55 (if headersOnly 56 - then { buildPhase = ":"; installPhase = "make install-data"; } 56 + then { dontBuild = true; installPhase = "make install-data"; } 57 57 else {}))
+5 -2
pkgs/os-specific/linux/firmware/zd1211/default.nix
··· 11 11 sha256 = "04ibs0qw8bh6h6zmm5iz6lddgknwhsjq8ib3gyck6a7psw83h7gi"; 12 12 }; 13 13 14 - buildPhase = "true"; 14 + dontBuild = true; 15 15 16 - installPhase = "mkdir -p $out/lib/firmware/zd1211; cp * $out/lib/firmware/zd1211"; 16 + installPhase = '' 17 + mkdir -p $out/lib/firmware/zd1211 18 + cp * $out/lib/firmware/zd1211 19 + ''; 17 20 18 21 meta = { 19 22 description = "Firmware for the ZyDAS ZD1211(b) 802.11a/b/g USB WLAN chip";
+9 -9
pkgs/servers/monitoring/longview/default.nix
··· 11 11 sha256 = "1i6va44bx2zfgbld7znf1slph0iqidlahq2xh3kd8q4lhvbrjn02"; 12 12 }; 13 13 14 - patches = 15 - [ # log to systemd journal 16 - ./log-stdout.patch 17 - ]; 14 + patches = [ 15 + # log to systemd journal 16 + ./log-stdout.patch 17 + ]; 18 18 19 - postPatch = 20 - '' 21 - substituteInPlace Linode/Longview/Util.pm --replace /var/run/longview.pid /run/longview.pid 22 - ''; 19 + postPatch = '' 20 + substituteInPlace Linode/Longview/Util.pm --replace /var/run/longview.pid /run/longview.pid 21 + ''; 23 22 24 23 buildInputs = [ perl makeWrapper glibc ] 25 24 ++ (with perlPackages; [ ··· 37 36 DBDmysql 38 37 ]); 39 38 40 - buildPhase = "true"; 39 + dontBuild = true; 40 + 41 41 installPhase = '' 42 42 mkdir -p $out/bin $out/usr 43 43 mv Linode $out
+1 -2
pkgs/servers/rt/default.nix
··· 7 7 8 8 src = fetchurl { 9 9 url = "https://download.bestpractical.com/pub/rt/release/${name}.tar.gz"; 10 - 11 10 sha256 = "1hgz50fxv9zdcngww083aqh8vzyk148lm7mcivxflpnsqfw3696x"; 12 11 }; 13 12 ··· 15 14 16 15 buildInputs = [ perl ]; 17 16 18 - buildPhase = "true"; 17 + dontBuild = true; 19 18 20 19 installPhase = '' 21 20 mkdir $out
+3 -4
pkgs/servers/sql/monetdb/default.nix
··· 25 25 javaSupport = true; 26 26 }; 27 27 28 - configurePhase = ":"; 29 - buildPhase = ":"; 30 - 28 + dontBuild = true; 29 + 31 30 installPhase = '' 32 31 mkdir $TMP/build 33 32 sh monetdb-install.sh --build=$TMP/build --prefix=$out --enable-sql --enable-xquery 34 33 ''; 35 34 36 - meta = { 35 + meta = { 37 36 description = "A open-source database system for high-performance applications in data mining, OLAP, GIS, XML Query, text and multimedia retrieval"; 38 37 homepage = http://monetdb.cwi.nl/; 39 38 license = "MonetDB Public License"; # very similar to Mozilla public license (MPL) Version see 1.1 http://monetdb.cwi.nl/Legal/MonetDBLicense-1.1.html
+6 -1
pkgs/servers/x11/xquartz/default.nix
··· 98 98 }; 99 99 in stdenv.mkDerivation { 100 100 name = "xquartz"; 101 + 101 102 buildInputs = [ ruby makeWrapper ]; 103 + 102 104 unpackPhase = "sourceRoot=."; 103 - buildPhase = ":"; 105 + 106 + dontBuild = true; 107 + 104 108 installPhase = '' 105 109 cp -rT ${xorg.xinit} $out 106 110 chmod -R u+w $out ··· 179 183 --replace "@DEFAULT_CLIENT@" "${xterm}/bin/xterm" \ 180 184 --replace "@FONTCONFIG_FILE@" "$fontsConfPath" 181 185 ''; 186 + 182 187 meta = with lib; { 183 188 platforms = platforms.darwin; 184 189 maintainers = with maintainers; [ cstrahan ];
+3 -4
pkgs/tools/admin/sec/default.nix
··· 10 10 11 11 buildInputs = [ perl ]; 12 12 13 - configurePhase = ":"; 14 - buildPhase = ":"; 13 + dontBuild = false; 14 + doCheck = false; 15 + 15 16 installPhase = '' 16 17 mkdir -p $out/bin $out/share/man/man1 17 18 cp sec $out/bin 18 19 cp sec.man $out/share/man/man1/sec.1 19 20 ''; 20 - doCheck = false; 21 21 22 22 meta = { 23 23 homepage = "http://simple-evcorr.sourceforge.net/"; ··· 26 26 maintainers = [ stdenv.lib.maintainers.tv ]; 27 27 platforms = stdenv.lib.platforms.all; 28 28 }; 29 - 30 29 }
+3 -12
pkgs/tools/misc/debootstrap/default.nix
··· 1 1 { stdenv, fetchurl, dpkg, gettext, gawk, perl, wget, coreutils, fakeroot }: 2 2 3 3 let 4 - 5 4 # USAGE like this: debootstrap sid /tmp/target-chroot-directory 6 - 7 5 # There is also cdebootstrap now. Is that easier to maintain? 8 - 9 6 makedev = stdenv.mkDerivation { 10 7 name = "makedev-for-debootstrap"; 11 8 src = fetchurl { ··· 27 24 chmod +x $t 28 25 ''; 29 26 }; 30 - 31 - in 32 - 33 - stdenv.mkDerivation rec { 34 - 27 + in stdenv.mkDerivation rec { 35 28 name = "debootstrap-${version}"; 36 29 version = "1.0.80"; 37 30 ··· 44 37 45 38 buildInputs = [ dpkg gettext gawk perl ]; 46 39 47 - buildPhase = ":"; 40 + dontBuild = true; 48 41 49 42 # If you have to update the patch for functions a vim regex like this 50 43 # can help you identify which lines are used to write scripts on TARGET and 51 44 # which should /bin/ paths should be replaced: 52 45 # \<echo\>\|\/bin\/\|^\s*\<cat\>\|EOF\|END 53 46 installPhase = '' 54 - 55 47 sed -i \ 56 48 -e 's@/usr/bin/id@id@' \ 57 49 -e 's@/usr/bin/dpkg@${dpkg}/bin/dpkg@' \ 58 50 -e 's@/usr/bin/sha@${coreutils}/bin/sha@' \ 59 51 -e 's@/bin/sha@${coreutils}/bin/sha@' \ 60 52 debootstrap 61 - 62 53 63 54 for file in functions debootstrap; do 64 55 substituteInPlace "$file" \ ··· 103 94 inherit makedev; 104 95 }; 105 96 106 - meta = { 97 + meta = { 107 98 description = "Tool to create a Debian system in a chroot"; 108 99 homepage = http://packages.debian.org/de/lenny/debootstrap; # http://code.erisian.com.au/Wiki/debootstrap 109 100 license = stdenv.lib.licenses.gpl2; # gentoo says so.. ?
+19 -18
pkgs/tools/networking/swec/default.nix
··· 5 5 name = "swec-0.4"; 6 6 7 7 src = fetchurl { 8 - url = "http://random.zerodogg.org/files/${name}.tar.bz2"; 8 + url = "http://files.zerodogg.org/swec/${name}.tar.bz2"; 9 9 sha256 = "1m3971z4z1wr0paggprfz0n8ng8vsnkc9m6s3bdplgyz7qjk6jwx"; 10 10 }; 11 11 12 12 buildInputs = [ makeWrapper perl LWP URI HTMLParser ] 13 13 ++ stdenv.lib.optional doCheck [ HTTPServerSimple Parent ]; 14 14 15 - configurePhase = 16 - '' for i in swec tests/{runTests,testServer} 17 - do 18 - sed -i "$i" -e's|/usr/bin/perl|${perl}/bin/perl|g' 19 - done 20 - ''; 15 + configurePhase = '' 16 + for i in swec tests/{runTests,testServer} 17 + do 18 + sed -i "$i" -e's|/usr/bin/perl|${perl}/bin/perl|g' 19 + done 20 + ''; 21 + 22 + dontBuild = true; 21 23 22 - buildPhase = "true"; 23 - installPhase = 24 - '' make install prefix="$out" 24 + installPhase = '' 25 + make install prefix="$out" 25 26 26 - mkdir -p "$out/share/${name}" 27 - cp -v default.sdf "$out/share/${name}" 28 - sed -i "$out/bin/swec" -e"s|realpath(\$0)|'$out/share/${name}/swec'|g" 27 + mkdir -p "$out/share/${name}" 28 + cp -v default.sdf "$out/share/${name}" 29 + sed -i "$out/bin/swec" -e"s|realpath(\$0)|'$out/share/${name}/swec'|g" 29 30 30 - wrapProgram "$out/bin/swec" \ 31 - --prefix PERL5LIB : \ 32 - ${stdenv.lib.concatStringsSep ":" 33 - (map (x: "${x}/lib/perl5/site_perl") [ LWP URI HTMLParser ])} 34 - ''; 31 + wrapProgram "$out/bin/swec" \ 32 + --prefix PERL5LIB : \ 33 + ${stdenv.lib.concatStringsSep ":" 34 + (map (x: "${x}/lib/perl5/site_perl") [ LWP URI HTMLParser ])} 35 + ''; 35 36 36 37 doCheck = true; 37 38 checkPhase = "make test";
+9 -10
pkgs/tools/package-management/nix-repl/default.nix
··· 14 14 15 15 buildInputs = [ nix readline ]; 16 16 17 - buildPhase = "true"; 17 + dontBuild = true; 18 18 19 19 # FIXME: unfortunate cut&paste. 20 - installPhase = 21 - '' 22 - mkdir -p $out/bin 23 - $CXX -O3 -Wall -std=c++0x \ 24 - -o $out/bin/nix-repl nix-repl.cc \ 25 - -I${nix}/include/nix \ 26 - -lnixformat -lnixutil -lnixstore -lnixexpr -lnixmain -lreadline -lgc \ 27 - -DNIX_VERSION=\"${(builtins.parseDrvName nix.name).version}\" 28 - ''; 20 + installPhase = '' 21 + mkdir -p $out/bin 22 + $CXX -O3 -Wall -std=c++0x \ 23 + -o $out/bin/nix-repl nix-repl.cc \ 24 + -I${nix}/include/nix \ 25 + -lnixformat -lnixutil -lnixstore -lnixexpr -lnixmain -lreadline -lgc \ 26 + -DNIX_VERSION=\"${(builtins.parseDrvName nix.name).version}\" 27 + ''; 29 28 30 29 meta = { 31 30 homepage = https://github.com/edolstra/nix-repl;
+11 -12
pkgs/tools/package-management/nix-serve/default.nix
··· 15 15 buildInputs = [ perl nix ] 16 16 ++ (with perlPackages; [ DBI DBDSQLite Plack Starman ]); 17 17 18 - buildPhase = "true"; 18 + dontBuild = false; 19 19 20 20 # FIXME: unfortunate cut&paste. 21 - installPhase = 22 - '' 23 - mkdir -p $out/libexec/nix-serve 24 - cp nix-serve.psgi $out/libexec/nix-serve/nix-serve.psgi 21 + installPhase = '' 22 + mkdir -p $out/libexec/nix-serve 23 + cp nix-serve.psgi $out/libexec/nix-serve/nix-serve.psgi 25 24 26 - mkdir -p $out/bin 27 - cat > $out/bin/nix-serve <<EOF 28 - #! ${stdenv.shell} 29 - PERL5LIB=$PERL5LIB exec ${perlPackages.Starman}/bin/starman $out/libexec/nix-serve/nix-serve.psgi "\$@" 30 - EOF 31 - chmod +x $out/bin/nix-serve 32 - ''; 25 + mkdir -p $out/bin 26 + cat > $out/bin/nix-serve <<EOF 27 + #! ${stdenv.shell} 28 + PERL5LIB=$PERL5LIB exec ${perlPackages.Starman}/bin/starman $out/libexec/nix-serve/nix-serve.psgi "\$@" 29 + EOF 30 + chmod +x $out/bin/nix-serve 31 + ''; 33 32 34 33 meta = { 35 34 homepage = https://github.com/edolstra/nix-serve;
+10 -10
pkgs/tools/security/pius/default.nix
··· 12 12 13 13 buildInputs = [ python ]; 14 14 15 - patchPhase = 16 - '' sed -i "pius" -e's|/usr/bin/gpg|${gnupg}/bin/gpg2|g' 17 - ''; 15 + patchPhase = '' 16 + sed -i "pius" -e's|/usr/bin/gpg|${gnupg}/bin/gpg2|g' 17 + ''; 18 18 19 - buildPhase = "true"; 19 + dontBuild = true; 20 20 21 - installPhase = 22 - '' mkdir -p "$out/bin" 23 - cp -v pius "$out/bin" 21 + installPhase = '' 22 + mkdir -p "$out/bin" 23 + cp -v pius "$out/bin" 24 24 25 - mkdir -p "$out/doc/pius-${version}" 26 - cp -v README "$out/doc/pius-${version}" 27 - ''; 25 + mkdir -p "$out/doc/pius-${version}" 26 + cp -v README "$out/doc/pius-${version}" 27 + ''; 28 28 29 29 meta = { 30 30 homepage = http://www.phildev.net/pius/;
+1 -1
pkgs/tools/text/xidel/default.nix
··· 29 29 dpkg-deb -x ${src} ./ 30 30 ''; 31 31 32 - buildPhase = "true"; 32 + dontBuild = true; 33 33 34 34 installPhase = '' 35 35 mkdir -p "$out/bin"
+2 -3
pkgs/tools/text/xml/basex/default.nix
··· 21 21 mimeType = "text/xml"; 22 22 }; 23 23 24 - # We're using a pre-built package 25 - configurePhase = "true"; 26 - buildPhase = "true"; 24 + dontBuild = true; 25 + 27 26 installPhase = '' 28 27 mkdir -p "$out" 29 28 cp -r * "$out"
+3 -4
pkgs/tools/typesetting/pygmentex/default.nix
··· 11 11 12 12 pythonPath = [ python2Packages.pygments python2Packages.chardet ]; 13 13 14 - buildPhase = ":"; 15 - 14 + dontBuild = true; 15 + 16 16 doCheck = false; 17 - 17 + 18 18 installPhase = '' 19 - 20 19 mkdir -p $out/bin 21 20 cp -a pygmentex.py $out/bin 22 21 '';
+1 -1
pkgs/tools/typesetting/tex/dblatex/default.nix
··· 55 55 done 56 56 ''; 57 57 58 - buildPhase = "true"; 58 + dontBuild = true; 59 59 60 60 installPhase = '' 61 61 python ./setup.py install --prefix="$out" --use-python-path --verbose
+3 -1
pkgs/tools/typesetting/tex/pgf/1.x.nix
··· 8 8 sha256 = "0s6b8rx9yfxcjjg18vx1mphnwbd28fl5lnq0dasjz40pp3ypwdjv"; 9 9 }; 10 10 11 - buildPhase = "true"; 11 + dontBuild = true; 12 + 12 13 installPhase = " 13 14 mkdir -p $out/share/texmf-nix 14 15 cp -prd * $out/share/texmf-nix 15 16 "; 17 + 16 18 meta = { 17 19 branch = "1"; 18 20 };
+2 -1
pkgs/tools/typesetting/tex/pgf/2.x.nix
··· 8 8 sha256 = "0j57niag4jb2k0iyrvjsannxljc3vkx0iag7zd35ilhiy4dh6264"; 9 9 }; 10 10 11 - buildPhase = "true"; 11 + dontBuild = true; 12 12 13 13 installPhase = " 14 14 mkdir -p $out/share/texmf-nix 15 15 cp -prd * $out/share/texmf-nix 16 16 "; 17 + 17 18 meta = { 18 19 branch = "2"; 19 20 };
+2 -1
pkgs/tools/typesetting/tex/pgf/3.x.nix
··· 17 17 unzip $src 18 18 ''; 19 19 20 - buildPhase = "true"; 20 + dontBuild = true; 21 21 22 22 installPhase = " 23 23 mkdir -p $out/share/texmf-nix 24 24 cp -prd * $out/share/texmf-nix 25 25 "; 26 + 26 27 meta = { 27 28 branch = "3"; 28 29 };
+6 -5
pkgs/tools/typesetting/tex/pgfplots/default.nix
··· 2 2 3 3 stdenv.mkDerivation { 4 4 name = "pgfplots-1.5.1"; 5 + 5 6 src = fetchurl { 6 7 url = mirror://sourceforge/pgfplots/pgfplots_1.5.1.tds.zip; 7 8 sha256 = "1xajrmq35i0qlsfwydy5zzg6f1jg88hqqh5b3xsmglzrarnllbdi"; 8 9 }; 9 - 10 + 10 11 buildInputs = [ unzip ]; 11 - 12 + 12 13 unpackPhase = "unzip $src"; 13 - 14 - buildPhase = "true"; 15 - 14 + 15 + dontBuild = true; 16 + 16 17 installPhase = " 17 18 mkdir -p $out/share/texmf-nix 18 19 cp -prd * $out/share/texmf-nix