use dontBuild instead of hacks

changes:
 * buildPhase = "true"
 * buildPhase = ":"
This commit is contained in:
Robin Gloster
2016-05-04 10:11:04 +00:00
parent aadaa91379
commit 9820cb1bf2
58 changed files with 263 additions and 277 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
# Prebuilt binary distribution. # Prebuilt binary distribution.
# "patchelf --set-rpath" seems to break the application (cannot start), using # "patchelf --set-rpath" seems to break the application (cannot start), using
# LD_LIBRARY_PATH wrapper script instead. # LD_LIBRARY_PATH wrapper script instead.
buildPhase = "true"; dontBuild = true;
installPhase = '' installPhase = ''
mkdir -p "$out/bin" mkdir -p "$out/bin"
mkdir -p "$out/libexec/baudline" mkdir -p "$out/libexec/baudline"
+1 -4
View File
@@ -25,7 +25,6 @@ let
}; };
faust = stdenv.mkDerivation { faust = stdenv.mkDerivation {
name = "faust-${version}"; name = "faust-${version}";
inherit src; inherit src;
@@ -107,9 +106,7 @@ let
inherit src; inherit src;
configurePhase = ":"; dontBuild = true;
buildPhase = ":";
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
+1 -3
View File
@@ -132,9 +132,7 @@ let
inherit src; inherit src;
configurePhase = ":"; dontBuild = true;
buildPhase = ":";
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
@@ -1,12 +1,6 @@
{ stdenv, fetchurl, callPackage, patchelf, makeWrapper, coreutils, libusb }: { stdenv, fetchurl, callPackage, patchelf, makeWrapper, coreutils, libusb }:
/*
*/
let let
myPatchElf = file: with stdenv.lib; '' myPatchElf = file: with stdenv.lib; ''
patchelf --set-interpreter \ patchelf --set-interpreter \
${stdenv.glibc}/lib/ld-linux${optionalString stdenv.is64bit "-x86-64"}.so.2 \ ${stdenv.glibc}/lib/ld-linux${optionalString stdenv.is64bit "-x86-64"}.so.2 \
@@ -15,10 +9,7 @@ let
udevRules = callPackage ./udev_rules_type1.nix {}; udevRules = callPackage ./udev_rules_type1.nix {};
in in stdenv.mkDerivation rec {
stdenv.mkDerivation rec {
name = "brscan4-0.4.3-3"; name = "brscan4-0.4.3-3";
src = fetchurl { src = fetchurl {
url = "http://download.brother.com/welcome/dlf006645/${name}.amd64.deb"; url = "http://download.brother.com/welcome/dlf006645/${name}.amd64.deb";
@@ -32,8 +23,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ makeWrapper patchelf coreutils udevRules ]; nativeBuildInputs = [ makeWrapper patchelf coreutils udevRules ];
buildInputs = [ libusb ]; buildInputs = [ libusb ];
buildPhase = ":"; dontBuild = true;
patchPhase = '' patchPhase = ''
${myPatchElf "opt/brother/scanner/brscan4/brsaneconfig4"} ${myPatchElf "opt/brother/scanner/brscan4/brsaneconfig4"}
@@ -47,7 +37,6 @@ stdenv.mkDerivation rec {
''; '';
installPhase = '' installPhase = ''
PATH_TO_BRSCAN4="opt/brother/scanner/brscan4" PATH_TO_BRSCAN4="opt/brother/scanner/brscan4"
mkdir -p $out/$PATH_TO_BRSCAN4 mkdir -p $out/$PATH_TO_BRSCAN4
cp -rp $PATH_TO_BRSCAN4/* $out/$PATH_TO_BRSCAN4 cp -rp $PATH_TO_BRSCAN4/* $out/$PATH_TO_BRSCAN4
@@ -1,8 +1,6 @@
{ stdenv, fetchurl, libsaneUDevRuleNumber ? "49"}: { stdenv, fetchurl, libsaneUDevRuleNumber ? "49"}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "brother-udev-rule-type1-1.0.0-1"; name = "brother-udev-rule-type1-1.0.0-1";
src = fetchurl { src = fetchurl {
@@ -10,7 +8,7 @@ stdenv.mkDerivation rec {
sha256 = "0i0x5jw135pli4jl9mgnr5n2rrdvml57nw84yq2999r4frza53xi"; sha256 = "0i0x5jw135pli4jl9mgnr5n2rrdvml57nw84yq2999r4frza53xi";
}; };
buildInputs = [ ]; dontBuild = true;
unpackPhase = '' unpackPhase = ''
ar x $src ar x $src
@@ -37,9 +35,6 @@ stdenv.mkDerivation rec {
sed -i -e s/SYSFS/ATTR/g opt/brother/scanner/udev-rules/type1/*.rules sed -i -e s/SYSFS/ATTR/g opt/brother/scanner/udev-rules/type1/*.rules
''; '';
buildPhase = ":";
installPhase = '' installPhase = ''
mkdir -p $out/etc/udev/rules.d mkdir -p $out/etc/udev/rules.d
cp opt/brother/scanner/udev-rules/type1/NN-brother-mfp-type1.rules \ cp opt/brother/scanner/udev-rules/type1/NN-brother-mfp-type1.rules \
@@ -15,9 +15,9 @@ stdenv.mkDerivation rec {
jarfile = "$out/share/java/${pname}/JBidwatcher.jar"; jarfile = "$out/share/java/${pname}/JBidwatcher.jar";
unpackPhase = "true"; # unpackPhase = "true";
buildPhase = "true"; dontBuild = true;
installPhase = '' installPhase = ''
mkdir -p "$out/bin" mkdir -p "$out/bin"
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
sha256 = "09x7vl0kddivqq3pyrk6sg1f0sv5l7nj0bmblq222zk3b09bgg8p"; sha256 = "09x7vl0kddivqq3pyrk6sg1f0sv5l7nj0bmblq222zk3b09bgg8p";
}; };
buildPhase = "true"; dontBuild = true;
installPhase = '' installPhase = ''
mkdir -p $out/Applications mkdir -p $out/Applications
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
buildInputs = [python makeWrapper]; buildInputs = [python makeWrapper];
buildPhase = "true"; dontBuild = true;
installPhase = '' installPhase = ''
python ./setup.py install --prefix=$out python ./setup.py install --prefix=$out
for i in bzr svn git; do for i in bzr svn git; do
@@ -12,7 +12,7 @@ stdenv.mkDerivation {
buildInputs = [mercurial.python mercurial makeWrapper subversion]; buildInputs = [mercurial.python mercurial makeWrapper subversion];
buildPhase="true"; # skip svn for now dontBuild = true; # skip svn for now
# TODO also support svn stuff # TODO also support svn stuff
# moving .py files into lib directory so that you can't pick the wrong file from PATH. # moving .py files into lib directory so that you can't pick the wrong file from PATH.
@@ -13,22 +13,21 @@ stdenv.mkDerivation {
buildInputs = [ ruby makeWrapper ]; buildInputs = [ ruby makeWrapper ];
buildPhase = "true"; dontBuild = true;
installPhase = installPhase = ''
'' mkdir -p $out
mkdir -p $out cp -r lib $out/
cp -r lib $out/
mkdir -p $out/bin mkdir -p $out/bin
substituteInPlace bin/svn2git --replace '/usr/bin/env ruby' ${ruby}/bin/ruby substituteInPlace bin/svn2git --replace '/usr/bin/env ruby' ${ruby}/bin/ruby
cp bin/svn2git $out/bin/ cp bin/svn2git $out/bin/
chmod +x $out/bin/svn2git chmod +x $out/bin/svn2git
wrapProgram $out/bin/svn2git \ wrapProgram $out/bin/svn2git \
--set RUBYLIB $out/lib \ --set RUBYLIB $out/lib \
--prefix PATH : ${git}/bin --prefix PATH : ${git}/bin
''; '';
meta = { meta = {
homepage = https://github.com/nirvdrum/svn2git; homepage = https://github.com/nirvdrum/svn2git;
@@ -10,7 +10,8 @@ stdenv.mkDerivation rec {
}; };
buildInputs = [ git nettools perl ]; buildInputs = [ git nettools perl ];
buildPhase = "true";
dontBuild = true;
patchPhase = '' patchPhase = ''
substituteInPlace ./install --replace " 2>/dev/null" "" substituteInPlace ./install --replace " 2>/dev/null" ""
+1 -1
View File
@@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
sha256 = "01hvpvbrks40g9k1xr2f1gxnd5wd0sxidgfbwrm94pdi1a36xxrk"; sha256 = "01hvpvbrks40g9k1xr2f1gxnd5wd0sxidgfbwrm94pdi1a36xxrk";
}; };
buildPhase = "true"; dontBuild = true;
installPhase = '' installPhase = ''
fontDir=$out/share/fonts/opentype fontDir=$out/share/fonts/opentype
+6 -2
View File
@@ -8,8 +8,12 @@ stdenv.mkDerivation {
sha256 = "1j1y3cq6ys30m734axc0brdm2q9n2as4h32jws15r7w5fwr991km"; sha256 = "1j1y3cq6ys30m734axc0brdm2q9n2as4h32jws15r7w5fwr991km";
}; };
buildPhase = "true"; dontBuild = true;
installPhase = "mkdir -p $out/share/fonts/truetype; cp ttf/*.ttf $out/share/fonts/truetype";
installPhase = ''
mkdir -p $out/share/fonts/truetype
cp ttf/*.ttf $out/share/fonts/truetype
'';
meta = { meta = {
description = "TrueType versions of the Computer Modern and AMS TeX Fonts"; description = "TrueType versions of the Computer Modern and AMS TeX Fonts";
+1 -2
View File
@@ -9,8 +9,7 @@ stdenv.mkDerivation rec {
sha256 = "0l1zwmw42mpakjrzmbygshcg2qzq9mv8lx42738rz3j9hrqzg4pw"; sha256 = "0l1zwmw42mpakjrzmbygshcg2qzq9mv8lx42738rz3j9hrqzg4pw";
}; };
configurePhase = "true"; dontBuild = true;
buildPhase = "true";
buildInputs = [bdftopcf mkfontdir mkfontscale]; buildInputs = [bdftopcf mkfontdir mkfontscale];
+13 -14
View File
@@ -10,25 +10,24 @@ stdenv.mkDerivation {
sha256 = "1pwz83yh28yd8aj6fbyfz8z3q3v67psszpd9mp4vv0ms9w8b5ajn"; sha256 = "1pwz83yh28yd8aj6fbyfz8z3q3v67psszpd9mp4vv0ms9w8b5ajn";
}; };
buildPhase = "true"; dontBuild = true;
installPhase = installPhase = ''
'' mkdir -p $out/share/fonts/opentype
mkdir -p $out/share/fonts/opentype cp -v */*.otf $out/share/fonts/opentype
cp -v */*.otf $out/share/fonts/opentype
mkdir -p $out/share/fonts/truetype mkdir -p $out/share/fonts/truetype
cp -v */*.ttf $out/share/fonts/truetype cp -v */*.ttf $out/share/fonts/truetype
mkdir -p $out/share/fonts/bdf mkdir -p $out/share/fonts/bdf
cp -v */BDF/*.bdf $out/share/fonts/bdf cp -v */BDF/*.bdf $out/share/fonts/bdf
mkdir -p $out/share/fonts/pcf mkdir -p $out/share/fonts/pcf
cp -v */PCF/*.pcf.gz $out/share/fonts/pcf cp -v */PCF/*.pcf.gz $out/share/fonts/pcf
mkdir -p $out/share/fonts/psf mkdir -p $out/share/fonts/psf
cp -v */PSF/*.psf.gz $out/share/fonts/psf cp -v */PSF/*.psf.gz $out/share/fonts/psf
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = https://github.com/powerline/fonts; homepage = https://github.com/powerline/fonts;
@@ -8,11 +8,11 @@ stdenv.mkDerivation {
sha256 = "1p3qs51x5327gnk71yq8cvmxc6wgx79sqxfvxcv80cdvgggjfnyv"; sha256 = "1p3qs51x5327gnk71yq8cvmxc6wgx79sqxfvxcv80cdvgggjfnyv";
}; };
buildPhase = "true"; dontBuild = true;
installPhase = " installPhase = ''
fontDir=$out/share/fonts/truetype fontDir=$out/share/fonts/truetype
mkdir -p $fontDir mkdir -p $fontDir
cp *.ttf $fontDir cp *.ttf $fontDir
"; '';
} }
+3 -3
View File
@@ -10,13 +10,13 @@ stdenv.mkDerivation {
buildInputs = [cabextract]; buildInputs = [cabextract];
unpackPhase = " unpackPhase = ''
cabextract --lowercase --filter ppviewer.cab $src cabextract --lowercase --filter ppviewer.cab $src
cabextract --lowercase --filter '*.TTF' ppviewer.cab cabextract --lowercase --filter '*.TTF' ppviewer.cab
sourceRoot=. sourceRoot=.
"; '';
buildPhase = "true"; dontBuild = true;
installPhase = '' installPhase = ''
mkdir -p $out/share/fonts/truetype mkdir -p $out/share/fonts/truetype
@@ -10,19 +10,18 @@ let
inherit sha256; inherit sha256;
}; };
buildPhase = "true"; dontBuild = true;
installPhase = installPhase = ''
'' dst=$out/share/xml/${pname}
dst=$out/share/xml/${pname} mkdir -p $dst
mkdir -p $dst rm -rf RELEASE* README* INSTALL TODO NEWS* BUGS install.sh svn* tools log Makefile tests extensions webhelp
rm -rf RELEASE* README* INSTALL TODO NEWS* BUGS install.sh svn* tools log Makefile tests extensions webhelp mv * $dst/
mv * $dst/
# Backwards compatibility. Will remove eventually. # Backwards compatibility. Will remove eventually.
mkdir -p $out/xml/xsl mkdir -p $out/xml/xsl
ln -s $dst $out/xml/xsl/docbook ln -s $dst $out/xml/xsl/docbook
''; '';
meta = { meta = {
homepage = http://wiki.docbook.org/topic/DocBookXslStylesheets; homepage = http://wiki.docbook.org/topic/DocBookXslStylesheets;
@@ -56,7 +56,7 @@ stdenv.mkDerivation rec {
# No building is necessary, but calling make without flags ironically # No building is necessary, but calling make without flags ironically
# calls install-strip ... # calls install-strip ...
buildPhase = "true"; dontBuild = true;
# The binaries for Darwin use frameworks, so fake those frameworks, # The binaries for Darwin use frameworks, so fake those frameworks,
# and create some wrapper scripts that set DYLD_FRAMEWORK_PATH so # and create some wrapper scripts that set DYLD_FRAMEWORK_PATH so
@@ -99,7 +99,7 @@ stdenv.mkDerivation rec {
# No building is necessary, but calling make without flags ironically # No building is necessary, but calling make without flags ironically
# calls install-strip ... # calls install-strip ...
buildPhase = "true"; dontBuild = true;
postInstall = postInstall =
'' ''
@@ -101,7 +101,7 @@ stdenv.mkDerivation rec {
# No building is necessary, but calling make without flags ironically # No building is necessary, but calling make without flags ironically
# calls install-strip ... # calls install-strip ...
buildPhase = "true"; dontBuild = true;
preInstall = stdenv.lib.optionalString stdenv.isDarwin '' preInstall = stdenv.lib.optionalString stdenv.isDarwin ''
mkdir -p $out/lib/ghc-7.4.2 mkdir -p $out/lib/ghc-7.4.2
+1 -2
View File
@@ -29,11 +29,10 @@ stdenv.mkDerivation rec {
dontStrip = true; dontStrip = true;
dontPatchELF = true; dontPatchELF = true;
dontBuild = true;
makeFlags = [ "DESTLIBDIR=$(out)/lib" "DESTHDRDIR=$(out)/include" ]; makeFlags = [ "DESTLIBDIR=$(out)/lib" "DESTHDRDIR=$(out)/include" ];
buildPhase = "true";
preInstall = '' preInstall = ''
mkdir -p $out/lib mkdir -p $out/lib
''; '';
+2 -1
View File
@@ -18,7 +18,8 @@ stdenv.mkDerivation rec {
}; };
dontStrip = true; dontStrip = true;
buildPhase = "true"; dontBuild = true;
installPhase = '' installPhase = ''
mkdir -p $out/lib $out/include/fmodex mkdir -p $out/lib $out/include/fmodex
@@ -29,13 +29,8 @@ else stdenv.mkDerivation {
else else
null; null;
# common dontBuild = true;
buildPhase = "true";
# no patch or build phase for darwin
phases =
[ "unpackPhase" ] ++
(stdenv.lib.optionals (isLinux) [ "patchPhase" "buildPhase" ]) ++
[ "installPhase" ];
installPhase = if (isLinux) installPhase = if (isLinux)
then "installPhase" then "installPhase"
else '' else ''
@@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "035z3cs5ignywgh4wqxx358a2nhn3lj0x1ifij6vj0yyyhah3wgj"; sha256 = "035z3cs5ignywgh4wqxx358a2nhn3lj0x1ifij6vj0yyyhah3wgj";
}; };
buildPhase = ":"; dontBuild = false;
buildInputs = stdenv.lib.optional doCheck perl; buildInputs = stdenv.lib.optional doCheck perl;
@@ -2,9 +2,12 @@
stdenv.mkDerivation { stdenv.mkDerivation {
name = "xlibs-wrapper"; name = "xlibs-wrapper";
buildPhase = "true";
dontBuild = true;
installPhase = "mkdir -p $out"; installPhase = "mkdir -p $out";
unpackPhase = "sourceRoot=."; unpackPhase = "sourceRoot=.";
propagatedBuildInputs = packages; propagatedBuildInputs = packages;
preferLocalBuild = true; preferLocalBuild = true;
@@ -152,7 +152,7 @@ let
name = "node-${name}-${version}"; name = "node-${name}-${version}";
buildInputs = [ nodejs python ] ++ stdenv.lib.optional (stdenv.isLinux) utillinux ++ buildInputs; buildInputs = [ nodejs python ] ++ stdenv.lib.optional (stdenv.isLinux) utillinux ++ buildInputs;
buildPhase = "true"; dontBuild = true;
installPhase = '' installPhase = ''
# Move the contents of the tarball into the output folder # Move the contents of the tarball into the output folder
@@ -3,15 +3,22 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "PyStringTemplate-${version}"; name = "PyStringTemplate-${version}";
version = "3.2b1"; version = "3.2b1";
meta = {
homepage = "http://www.stringtemplate.org/";
description = "Text Templating Library";
};
src = fetchurl { src = fetchurl {
url = "http://www.stringtemplate.org/download/${name}.tar.gz"; url = "http://www.stringtemplate.org/download/${name}.tar.gz";
sha256 = "0lbib0l8c1q7i1j610rwcdagymr1idahrql4dkgnm5rzyg2vk3ml"; sha256 = "0lbib0l8c1q7i1j610rwcdagymr1idahrql4dkgnm5rzyg2vk3ml";
}; };
propagatedBuildInputs = [python antlr]; propagatedBuildInputs = [python antlr];
buildPhase = "true";
installPhase = "python setup.py install --prefix=$out --install-lib=$(toPythonPath $out) -O1"; dontBuild = true;
installPhase = ''
python setup.py install --prefix=$out --install-lib=$(toPythonPath $out) -O1
'';
meta = {
homepage = "http://www.stringtemplate.org/";
description = "Text Templating Library";
};
} }
@@ -11,7 +11,8 @@ stdenv.mkDerivation rec {
patches = [ ./0001-Fix-scan-build-to-use-NIX_CFLAGS_COMPILE.patch ]; patches = [ ./0001-Fix-scan-build-to-use-NIX_CFLAGS_COMPILE.patch ];
buildInputs = [ clang llvmPackages.clang perl makeWrapper ]; buildInputs = [ clang llvmPackages.clang perl makeWrapper ];
buildPhase = "true";
dontBuild = true;
installPhase = '' installPhase = ''
mkdir -p $out/bin $out/libexec mkdir -p $out/bin $out/libexec
@@ -4,7 +4,7 @@ rec {
gradleGen = {name, src} : stdenv.mkDerivation rec { gradleGen = {name, src} : stdenv.mkDerivation rec {
inherit name src; inherit name src;
buildPhase = ":"; dontBuild = true;
installPhase = '' installPhase = ''
mkdir -pv $out/lib/gradle/ mkdir -pv $out/lib/gradle/
@@ -1,9 +1,13 @@
{ name, stdenv, perl, makeWrapper, sqitchModule, databaseModule }: { name, stdenv, perl, makeWrapper, sqitchModule, databaseModule }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "${name}-${sqitchModule.version}"; name = "${name}-${sqitchModule.version}";
buildInputs = [ perl makeWrapper sqitchModule databaseModule ]; buildInputs = [ perl makeWrapper sqitchModule databaseModule ];
unpackPhase = ":";
buildPhase = ":"; src = sqitchModule;
dontBuild = true;
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
for d in bin/sqitch etc lib share ; do for d in bin/sqitch etc lib share ; do
+1 -1
View File
@@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
buildInputs = [ unzip ]; buildInputs = [ unzip ];
buildPhase = "true"; dontBuild = true;
installPhase = '' installPhase = ''
mkdir -p "$out" mkdir -p "$out"
@@ -67,8 +67,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
buildInputs = [ cups perl coreutils gnused gnugrep brgenml1lpr ]; buildInputs = [ cups perl coreutils gnused gnugrep brgenml1lpr ];
configurePhase = ":"; dontBuild = true;
buildPhase = ":";
patchPhase = '' patchPhase = ''
WRAPPER=opt/brother/Printers/BrGenML1/cupswrapper/brother_lpdwrapper_BrGenML1 WRAPPER=opt/brother/Printers/BrGenML1/cupswrapper/brother_lpdwrapper_BrGenML1
@@ -50,7 +50,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
buildInputs = [ cups perl glibc ghostscript which ]; buildInputs = [ cups perl glibc ghostscript which ];
buildPhase = ":"; dontBuild = true;
patchPhase = '' patchPhase = ''
INFDIR=opt/brother/Printers/BrGenML1/inf INFDIR=opt/brother/Printers/BrGenML1/inf
@@ -5,9 +5,9 @@ assert stdenv.isDarwin;
stdenv.mkDerivation { stdenv.mkDerivation {
name = "install_name_tool"; name = "install_name_tool";
src = "/usr/bin/install_name_tool"; src = "/usr/bin/install_name_tool";
unpackPhase = "true"; unpackPhase = "true";
configurePhase = "true"; dontBuild = true;
buildPhase = "true";
installPhase = '' installPhase = ''
mkdir -p "$out"/bin mkdir -p "$out"/bin
+2 -3
View File
@@ -7,9 +7,8 @@ in stdenv.mkDerivation rec {
src = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk"; src = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk";
unpackPhase = "true"; unpackPhase = "true";
configurePhase = "true"; dontBuild = true;
buildPhase = "true";
installPhase = '' installPhase = ''
mkdir -p $out/Developer/SDKs/ mkdir -p $out/Developer/SDKs/
+1 -1
View File
@@ -87,7 +87,7 @@ stdenv.mkDerivation ({
// //
(if headersOnly (if headersOnly
then { buildPhase = ":"; installPhase = "make install-headers"; } then { dontBuild = true; installPhase = "make install-headers"; }
else (if (cross != null) else (if (cross != null)
then { then {
crossConfig = cross.config; crossConfig = cross.config;
+1 -1
View File
@@ -46,7 +46,7 @@ stdenv.mkDerivation ({
"ac_cv_lib_ihash_hurd_ihash_create=yes" "ac_cv_lib_ihash_hurd_ihash_create=yes"
]; ];
buildPhase = ":"; dontBuild = true;
installPhase = "make install-data-local-headers"; installPhase = "make install-data-local-headers";
} }
else { }) else { })
+1 -1
View File
@@ -53,5 +53,5 @@ stdenv.mkDerivation ({
// //
(if headersOnly (if headersOnly
then { buildPhase = ":"; installPhase = "make install-data"; } then { dontBuild = true; installPhase = "make install-data"; }
else {})) else {}))
@@ -11,9 +11,12 @@ stdenv.mkDerivation rec {
sha256 = "04ibs0qw8bh6h6zmm5iz6lddgknwhsjq8ib3gyck6a7psw83h7gi"; sha256 = "04ibs0qw8bh6h6zmm5iz6lddgknwhsjq8ib3gyck6a7psw83h7gi";
}; };
buildPhase = "true"; dontBuild = true;
installPhase = "mkdir -p $out/lib/firmware/zd1211; cp * $out/lib/firmware/zd1211"; installPhase = ''
mkdir -p $out/lib/firmware/zd1211
cp * $out/lib/firmware/zd1211
'';
meta = { meta = {
description = "Firmware for the ZyDAS ZD1211(b) 802.11a/b/g USB WLAN chip"; description = "Firmware for the ZyDAS ZD1211(b) 802.11a/b/g USB WLAN chip";
+9 -9
View File
@@ -11,15 +11,14 @@ stdenv.mkDerivation rec {
sha256 = "1i6va44bx2zfgbld7znf1slph0iqidlahq2xh3kd8q4lhvbrjn02"; sha256 = "1i6va44bx2zfgbld7znf1slph0iqidlahq2xh3kd8q4lhvbrjn02";
}; };
patches = patches = [
[ # log to systemd journal # log to systemd journal
./log-stdout.patch ./log-stdout.patch
]; ];
postPatch = postPatch = ''
'' substituteInPlace Linode/Longview/Util.pm --replace /var/run/longview.pid /run/longview.pid
substituteInPlace Linode/Longview/Util.pm --replace /var/run/longview.pid /run/longview.pid '';
'';
buildInputs = [ perl makeWrapper glibc ] buildInputs = [ perl makeWrapper glibc ]
++ (with perlPackages; [ ++ (with perlPackages; [
@@ -37,7 +36,8 @@ stdenv.mkDerivation rec {
DBDmysql DBDmysql
]); ]);
buildPhase = "true"; dontBuild = true;
installPhase = '' installPhase = ''
mkdir -p $out/bin $out/usr mkdir -p $out/bin $out/usr
mv Linode $out mv Linode $out
+1 -2
View File
@@ -7,7 +7,6 @@ stdenv.mkDerivation rec {
src = fetchurl { src = fetchurl {
url = "https://download.bestpractical.com/pub/rt/release/${name}.tar.gz"; url = "https://download.bestpractical.com/pub/rt/release/${name}.tar.gz";
sha256 = "1hgz50fxv9zdcngww083aqh8vzyk148lm7mcivxflpnsqfw3696x"; sha256 = "1hgz50fxv9zdcngww083aqh8vzyk148lm7mcivxflpnsqfw3696x";
}; };
@@ -15,7 +14,7 @@ stdenv.mkDerivation rec {
buildInputs = [ perl ]; buildInputs = [ perl ];
buildPhase = "true"; dontBuild = true;
installPhase = '' installPhase = ''
mkdir $out mkdir $out
+1 -2
View File
@@ -25,8 +25,7 @@ composableDerivation.composableDerivation {} {
javaSupport = true; javaSupport = true;
}; };
configurePhase = ":"; dontBuild = true;
buildPhase = ":";
installPhase = '' installPhase = ''
mkdir $TMP/build mkdir $TMP/build
+6 -1
View File
@@ -98,9 +98,13 @@ let
}; };
in stdenv.mkDerivation { in stdenv.mkDerivation {
name = "xquartz"; name = "xquartz";
buildInputs = [ ruby makeWrapper ]; buildInputs = [ ruby makeWrapper ];
unpackPhase = "sourceRoot=."; unpackPhase = "sourceRoot=.";
buildPhase = ":";
dontBuild = true;
installPhase = '' installPhase = ''
cp -rT ${xorg.xinit} $out cp -rT ${xorg.xinit} $out
chmod -R u+w $out chmod -R u+w $out
@@ -179,6 +183,7 @@ in stdenv.mkDerivation {
--replace "@DEFAULT_CLIENT@" "${xterm}/bin/xterm" \ --replace "@DEFAULT_CLIENT@" "${xterm}/bin/xterm" \
--replace "@FONTCONFIG_FILE@" "$fontsConfPath" --replace "@FONTCONFIG_FILE@" "$fontsConfPath"
''; '';
meta = with lib; { meta = with lib; {
platforms = platforms.darwin; platforms = platforms.darwin;
maintainers = with maintainers; [ cstrahan ]; maintainers = with maintainers; [ cstrahan ];
+3 -4
View File
@@ -10,14 +10,14 @@ stdenv.mkDerivation rec {
buildInputs = [ perl ]; buildInputs = [ perl ];
configurePhase = ":"; dontBuild = false;
buildPhase = ":"; doCheck = false;
installPhase = '' installPhase = ''
mkdir -p $out/bin $out/share/man/man1 mkdir -p $out/bin $out/share/man/man1
cp sec $out/bin cp sec $out/bin
cp sec.man $out/share/man/man1/sec.1 cp sec.man $out/share/man/man1/sec.1
''; '';
doCheck = false;
meta = { meta = {
homepage = "http://simple-evcorr.sourceforge.net/"; homepage = "http://simple-evcorr.sourceforge.net/";
@@ -26,5 +26,4 @@ stdenv.mkDerivation rec {
maintainers = [ stdenv.lib.maintainers.tv ]; maintainers = [ stdenv.lib.maintainers.tv ];
platforms = stdenv.lib.platforms.all; platforms = stdenv.lib.platforms.all;
}; };
} }
+2 -11
View File
@@ -1,11 +1,8 @@
{ stdenv, fetchurl, dpkg, gettext, gawk, perl, wget, coreutils, fakeroot }: { stdenv, fetchurl, dpkg, gettext, gawk, perl, wget, coreutils, fakeroot }:
let let
# USAGE like this: debootstrap sid /tmp/target-chroot-directory # USAGE like this: debootstrap sid /tmp/target-chroot-directory
# There is also cdebootstrap now. Is that easier to maintain? # There is also cdebootstrap now. Is that easier to maintain?
makedev = stdenv.mkDerivation { makedev = stdenv.mkDerivation {
name = "makedev-for-debootstrap"; name = "makedev-for-debootstrap";
src = fetchurl { src = fetchurl {
@@ -27,11 +24,7 @@ let
chmod +x $t chmod +x $t
''; '';
}; };
in stdenv.mkDerivation rec {
in
stdenv.mkDerivation rec {
name = "debootstrap-${version}"; name = "debootstrap-${version}";
version = "1.0.80"; version = "1.0.80";
@@ -44,14 +37,13 @@ stdenv.mkDerivation rec {
buildInputs = [ dpkg gettext gawk perl ]; buildInputs = [ dpkg gettext gawk perl ];
buildPhase = ":"; dontBuild = true;
# If you have to update the patch for functions a vim regex like this # If you have to update the patch for functions a vim regex like this
# can help you identify which lines are used to write scripts on TARGET and # can help you identify which lines are used to write scripts on TARGET and
# which should /bin/ paths should be replaced: # which should /bin/ paths should be replaced:
# \<echo\>\|\/bin\/\|^\s*\<cat\>\|EOF\|END # \<echo\>\|\/bin\/\|^\s*\<cat\>\|EOF\|END
installPhase = '' installPhase = ''
sed -i \ sed -i \
-e 's@/usr/bin/id@id@' \ -e 's@/usr/bin/id@id@' \
-e 's@/usr/bin/dpkg@${dpkg}/bin/dpkg@' \ -e 's@/usr/bin/dpkg@${dpkg}/bin/dpkg@' \
@@ -59,7 +51,6 @@ stdenv.mkDerivation rec {
-e 's@/bin/sha@${coreutils}/bin/sha@' \ -e 's@/bin/sha@${coreutils}/bin/sha@' \
debootstrap debootstrap
for file in functions debootstrap; do for file in functions debootstrap; do
substituteInPlace "$file" \ substituteInPlace "$file" \
--subst-var-by gunzip "$(type -p gunzip)" \ --subst-var-by gunzip "$(type -p gunzip)" \
+19 -18
View File
@@ -5,33 +5,34 @@ stdenv.mkDerivation rec {
name = "swec-0.4"; name = "swec-0.4";
src = fetchurl { src = fetchurl {
url = "http://random.zerodogg.org/files/${name}.tar.bz2"; url = "http://files.zerodogg.org/swec/${name}.tar.bz2";
sha256 = "1m3971z4z1wr0paggprfz0n8ng8vsnkc9m6s3bdplgyz7qjk6jwx"; sha256 = "1m3971z4z1wr0paggprfz0n8ng8vsnkc9m6s3bdplgyz7qjk6jwx";
}; };
buildInputs = [ makeWrapper perl LWP URI HTMLParser ] buildInputs = [ makeWrapper perl LWP URI HTMLParser ]
++ stdenv.lib.optional doCheck [ HTTPServerSimple Parent ]; ++ stdenv.lib.optional doCheck [ HTTPServerSimple Parent ];
configurePhase = configurePhase = ''
'' for i in swec tests/{runTests,testServer} for i in swec tests/{runTests,testServer}
do do
sed -i "$i" -e's|/usr/bin/perl|${perl}/bin/perl|g' sed -i "$i" -e's|/usr/bin/perl|${perl}/bin/perl|g'
done done
''; '';
buildPhase = "true"; dontBuild = true;
installPhase =
'' make install prefix="$out"
mkdir -p "$out/share/${name}" installPhase = ''
cp -v default.sdf "$out/share/${name}" make install prefix="$out"
sed -i "$out/bin/swec" -e"s|realpath(\$0)|'$out/share/${name}/swec'|g"
wrapProgram "$out/bin/swec" \ mkdir -p "$out/share/${name}"
--prefix PERL5LIB : \ cp -v default.sdf "$out/share/${name}"
${stdenv.lib.concatStringsSep ":" sed -i "$out/bin/swec" -e"s|realpath(\$0)|'$out/share/${name}/swec'|g"
(map (x: "${x}/lib/perl5/site_perl") [ LWP URI HTMLParser ])}
''; wrapProgram "$out/bin/swec" \
--prefix PERL5LIB : \
${stdenv.lib.concatStringsSep ":"
(map (x: "${x}/lib/perl5/site_perl") [ LWP URI HTMLParser ])}
'';
doCheck = true; doCheck = true;
checkPhase = "make test"; checkPhase = "make test";
@@ -14,18 +14,17 @@ stdenv.mkDerivation {
buildInputs = [ nix readline ]; buildInputs = [ nix readline ];
buildPhase = "true"; dontBuild = true;
# FIXME: unfortunate cut&paste. # FIXME: unfortunate cut&paste.
installPhase = installPhase = ''
'' mkdir -p $out/bin
mkdir -p $out/bin $CXX -O3 -Wall -std=c++0x \
$CXX -O3 -Wall -std=c++0x \ -o $out/bin/nix-repl nix-repl.cc \
-o $out/bin/nix-repl nix-repl.cc \ -I${nix}/include/nix \
-I${nix}/include/nix \ -lnixformat -lnixutil -lnixstore -lnixexpr -lnixmain -lreadline -lgc \
-lnixformat -lnixutil -lnixstore -lnixexpr -lnixmain -lreadline -lgc \ -DNIX_VERSION=\"${(builtins.parseDrvName nix.name).version}\"
-DNIX_VERSION=\"${(builtins.parseDrvName nix.name).version}\" '';
'';
meta = { meta = {
homepage = https://github.com/edolstra/nix-repl; homepage = https://github.com/edolstra/nix-repl;
@@ -15,21 +15,20 @@ stdenv.mkDerivation rec {
buildInputs = [ perl nix ] buildInputs = [ perl nix ]
++ (with perlPackages; [ DBI DBDSQLite Plack Starman ]); ++ (with perlPackages; [ DBI DBDSQLite Plack Starman ]);
buildPhase = "true"; dontBuild = false;
# FIXME: unfortunate cut&paste. # FIXME: unfortunate cut&paste.
installPhase = installPhase = ''
'' mkdir -p $out/libexec/nix-serve
mkdir -p $out/libexec/nix-serve cp nix-serve.psgi $out/libexec/nix-serve/nix-serve.psgi
cp nix-serve.psgi $out/libexec/nix-serve/nix-serve.psgi
mkdir -p $out/bin mkdir -p $out/bin
cat > $out/bin/nix-serve <<EOF cat > $out/bin/nix-serve <<EOF
#! ${stdenv.shell} #! ${stdenv.shell}
PERL5LIB=$PERL5LIB exec ${perlPackages.Starman}/bin/starman $out/libexec/nix-serve/nix-serve.psgi "\$@" PERL5LIB=$PERL5LIB exec ${perlPackages.Starman}/bin/starman $out/libexec/nix-serve/nix-serve.psgi "\$@"
EOF EOF
chmod +x $out/bin/nix-serve chmod +x $out/bin/nix-serve
''; '';
meta = { meta = {
homepage = https://github.com/edolstra/nix-serve; homepage = https://github.com/edolstra/nix-serve;
+10 -10
View File
@@ -12,19 +12,19 @@ stdenv.mkDerivation {
buildInputs = [ python ]; buildInputs = [ python ];
patchPhase = patchPhase = ''
'' sed -i "pius" -e's|/usr/bin/gpg|${gnupg}/bin/gpg2|g' sed -i "pius" -e's|/usr/bin/gpg|${gnupg}/bin/gpg2|g'
''; '';
buildPhase = "true"; dontBuild = true;
installPhase = installPhase = ''
'' mkdir -p "$out/bin" mkdir -p "$out/bin"
cp -v pius "$out/bin" cp -v pius "$out/bin"
mkdir -p "$out/doc/pius-${version}" mkdir -p "$out/doc/pius-${version}"
cp -v README "$out/doc/pius-${version}" cp -v README "$out/doc/pius-${version}"
''; '';
meta = { meta = {
homepage = http://www.phildev.net/pius/; homepage = http://www.phildev.net/pius/;
+1 -1
View File
@@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
dpkg-deb -x ${src} ./ dpkg-deb -x ${src} ./
''; '';
buildPhase = "true"; dontBuild = true;
installPhase = '' installPhase = ''
mkdir -p "$out/bin" mkdir -p "$out/bin"
+2 -3
View File
@@ -21,9 +21,8 @@ stdenv.mkDerivation rec {
mimeType = "text/xml"; mimeType = "text/xml";
}; };
# We're using a pre-built package dontBuild = true;
configurePhase = "true";
buildPhase = "true";
installPhase = '' installPhase = ''
mkdir -p "$out" mkdir -p "$out"
cp -r * "$out" cp -r * "$out"
+1 -2
View File
@@ -11,12 +11,11 @@ python2Packages.buildPythonApplication rec {
pythonPath = [ python2Packages.pygments python2Packages.chardet ]; pythonPath = [ python2Packages.pygments python2Packages.chardet ];
buildPhase = ":"; dontBuild = true;
doCheck = false; doCheck = false;
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
cp -a pygmentex.py $out/bin cp -a pygmentex.py $out/bin
''; '';
@@ -55,7 +55,7 @@ stdenv.mkDerivation rec {
done done
''; '';
buildPhase = "true"; dontBuild = true;
installPhase = '' installPhase = ''
python ./setup.py install --prefix="$out" --use-python-path --verbose python ./setup.py install --prefix="$out" --use-python-path --verbose
+3 -1
View File
@@ -8,11 +8,13 @@ stdenv.mkDerivation {
sha256 = "0s6b8rx9yfxcjjg18vx1mphnwbd28fl5lnq0dasjz40pp3ypwdjv"; sha256 = "0s6b8rx9yfxcjjg18vx1mphnwbd28fl5lnq0dasjz40pp3ypwdjv";
}; };
buildPhase = "true"; dontBuild = true;
installPhase = " installPhase = "
mkdir -p $out/share/texmf-nix mkdir -p $out/share/texmf-nix
cp -prd * $out/share/texmf-nix cp -prd * $out/share/texmf-nix
"; ";
meta = { meta = {
branch = "1"; branch = "1";
}; };
+2 -1
View File
@@ -8,12 +8,13 @@ stdenv.mkDerivation {
sha256 = "0j57niag4jb2k0iyrvjsannxljc3vkx0iag7zd35ilhiy4dh6264"; sha256 = "0j57niag4jb2k0iyrvjsannxljc3vkx0iag7zd35ilhiy4dh6264";
}; };
buildPhase = "true"; dontBuild = true;
installPhase = " installPhase = "
mkdir -p $out/share/texmf-nix mkdir -p $out/share/texmf-nix
cp -prd * $out/share/texmf-nix cp -prd * $out/share/texmf-nix
"; ";
meta = { meta = {
branch = "2"; branch = "2";
}; };
+2 -1
View File
@@ -17,12 +17,13 @@ stdenv.mkDerivation {
unzip $src unzip $src
''; '';
buildPhase = "true"; dontBuild = true;
installPhase = " installPhase = "
mkdir -p $out/share/texmf-nix mkdir -p $out/share/texmf-nix
cp -prd * $out/share/texmf-nix cp -prd * $out/share/texmf-nix
"; ";
meta = { meta = {
branch = "3"; branch = "3";
}; };
@@ -2,6 +2,7 @@
stdenv.mkDerivation { stdenv.mkDerivation {
name = "pgfplots-1.5.1"; name = "pgfplots-1.5.1";
src = fetchurl { src = fetchurl {
url = mirror://sourceforge/pgfplots/pgfplots_1.5.1.tds.zip; url = mirror://sourceforge/pgfplots/pgfplots_1.5.1.tds.zip;
sha256 = "1xajrmq35i0qlsfwydy5zzg6f1jg88hqqh5b3xsmglzrarnllbdi"; sha256 = "1xajrmq35i0qlsfwydy5zzg6f1jg88hqqh5b3xsmglzrarnllbdi";
@@ -11,7 +12,7 @@ stdenv.mkDerivation {
unpackPhase = "unzip $src"; unpackPhase = "unzip $src";
buildPhase = "true"; dontBuild = true;
installPhase = " installPhase = "
mkdir -p $out/share/texmf-nix mkdir -p $out/share/texmf-nix