Convert some *Flags from strings to lists

This commit is contained in:
Tobias Geerinckx-Rice 2015-11-26 18:44:44 +01:00
parent 8fe518e763
commit 2798b02ad0
26 changed files with 62 additions and 48 deletions

View File

@ -11,8 +11,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ groff ]; nativeBuildInputs = [ groff ];
buildInputs = [ id3lib zlib ]; buildInputs = [ id3lib zlib ];
makeFlags = "PREFIX=$(out)"; makeFlags = [ "PREFIX=$(out)" ];
buildFlags = "clean all"; buildFlags = [ "clean" "all" ];
preInstall = '' preInstall = ''
mkdir -p $out/{bin,share/man/man1} mkdir -p $out/{bin,share/man/man1}

View File

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
buildInputs = [ libav libkeyfinder ]; buildInputs = [ libav libkeyfinder ];
makeFlagsArray = "PREFIX=$(out)"; makeFlags = [ "PREFIX=$(out)" ];
enableParallelBuilding = true; enableParallelBuilding = true;

View File

@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
substituteInPlace Makefile --replace -liconv_hook "" substituteInPlace Makefile --replace -liconv_hook ""
''; '';
makeFlags = "prefix=$(out)"; makeFlags = [ "prefix=$(out)" ];
enableParallelBuilding = true; enableParallelBuilding = true;
doCheck = true; doCheck = true;

View File

@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
installFlags = "prefix=$(out)"; installFlags = [ "prefix=$(out)" ];
postInstall = '' postInstall = ''
# Remove inert ftdetect vim plugin and a README that's a man page subset: # Remove inert ftdetect vim plugin and a README that's a man page subset:

View File

@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
sha256 = "1lqdzw6n3rqhd097lk5w16jcjhwfqs5zvi42hsbk3p92smswpaj8"; sha256 = "1lqdzw6n3rqhd097lk5w16jcjhwfqs5zvi42hsbk3p92smswpaj8";
}; };
makeFlags = "MANDIR=$(out)/share/man"; makeFlags = [ "MANDIR=$(out)/share/man" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
inherit version; inherit version;

View File

@ -13,7 +13,7 @@ stdenv.mkDerivation {
enableParallelBuilding = true; enableParallelBuilding = true;
makeFlags = "PREFIX=$(out)"; makeFlags = [ "PREFIX=$(out)" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Emulate a Cisco-style telnet command-line interface"; description = "Emulate a Cisco-style telnet command-line interface";

View File

@ -41,7 +41,7 @@ in stdenv.mkDerivation {
# The libpsl check phase requires the list's test scripts (tests/) as well # The libpsl check phase requires the list's test scripts (tests/) as well
cp -Rv "${listSources}"/* list cp -Rv "${listSources}"/* list
''; '';
configureFlags = "--disable-static --enable-gtk-doc --enable-man"; configureFlags = [ "--disable-static" "--enable-gtk-doc" "--enable-man" ];
enableParallelBuilding = true; enableParallelBuilding = true;

View File

@ -11,7 +11,15 @@ in stdenv.mkDerivation rec {
url = "${meta.homepage}/downloads/${name}.src.tar.gz"; url = "${meta.homepage}/downloads/${name}.src.tar.gz";
}; };
buildInputs = with llvmPackages; [ clang llvm ];
nativeBuildInputs = [ cmake ];
cmakeFlags = [ "-DIWYU_LLVM_ROOT_PATH=${llvmPackages.clang-unwrapped}" ];
enableParallelBuilding = true;
meta = with stdenv.lib; { meta = with stdenv.lib; {
inherit version;
description = "Analyze #includes in C/C++ source files with clang"; description = "Analyze #includes in C/C++ source files with clang";
longDescription = '' longDescription = ''
For every symbol (type, function variable, or macro) that you use in For every symbol (type, function variable, or macro) that you use in
@ -26,11 +34,4 @@ in stdenv.mkDerivation rec {
platforms = platforms.linux; platforms = platforms.linux;
maintainers = with maintainers; [ nckx ]; maintainers = with maintainers; [ nckx ];
}; };
buildInputs = with llvmPackages; [ clang llvm ];
nativeBuildInputs = [ cmake ];
cmakeFlags = "-DIWYU_LLVM_ROOT_PATH=${llvmPackages.clang-unwrapped}";
enableParallelBuilding = true;
} }

View File

@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
preInstall = '' preInstall = ''
mkdir -p $out/bin mkdir -p $out/bin
''; '';
installFlags = "DESTDIR=$(out)"; installFlags = [ "DESTDIR=$(out)" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
inherit version; inherit version;

View File

@ -26,7 +26,11 @@ in stdenv.mkDerivation rec {
NIX_CFLAGS_COMPILE = "-I${SDL2}/include/SDL"; NIX_CFLAGS_COMPILE = "-I${SDL2}/include/SDL";
NIX_LDFLAGS = "-L${SDL2}/lib"; NIX_LDFLAGS = "-L${SDL2}/lib";
makeFlags = "LINKED_GTK=1 SDLCONFIG=${SDL2}/bin/sdl2-config VC_REV=${rev}"; makeFlags = [
"LINKED_GTK=1"
"SDLCONFIG=${SDL2}/bin/sdl2-config"
"VC_REV=${rev}"
];
desktopItem = makeDesktopItem { desktopItem = makeDesktopItem {
name = "eduke32"; name = "eduke32";

View File

@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
-e "s|/usr/share/dstat|$out/share/dstat|" dstat -e "s|/usr/share/dstat|$out/share/dstat|" dstat
''; '';
makeFlags = "prefix=$(out)"; makeFlags = [ "prefix=$(out)" ];
postInstall = '' postInstall = ''
wrapPythonProgramsIn $out/bin "$out $pythonPath" wrapPythonProgramsIn $out/bin "$out $pythonPath"

View File

@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
--replace "'which'" "'${which}/bin/which'" --replace "'which'" "'${which}/bin/which'"
''; '';
makeFlagsArray = "PREFIX=$(out)"; makeFlags = [ "PREFIX=$(out)" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
inherit version; inherit version;

View File

@ -17,7 +17,7 @@ stdenv.mkDerivation {
substituteInPlace freefall.c --replace "alarm(2)" "alarm(7)" substituteInPlace freefall.c --replace "alarm(2)" "alarm(7)"
''; '';
makeFlags = "PREFIX=$(out)"; makeFlags = [ "PREFIX=$(out)" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Free-fall protection for spinning HP/Dell laptop hard drives"; description = "Free-fall protection for spinning HP/Dell laptop hard drives";

View File

@ -1,7 +1,8 @@
{ stdenv, fetchurl, ncurses }: { stdenv, fetchurl, ncurses }:
let version = "1.0"; in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "ftop-1.0"; name = "ftop-${version}";
src = fetchurl { src = fetchurl {
url = "http://ftop.googlecode.com/files/${name}.tar.bz2"; url = "http://ftop.googlecode.com/files/${name}.tar.bz2";
@ -14,18 +15,19 @@ stdenv.mkDerivation rec {
./ftop-fix_buffer_overflow.patch ./ftop-fix_buffer_overflow.patch
./ftop-fix_printf_format.patch ./ftop-fix_printf_format.patch
]; ];
patchFlags = "-p0"; patchFlags = [ "-p0" ];
postPatch = '' postPatch = ''
substituteInPlace configure --replace "curses" "ncurses" substituteInPlace configure --replace "curses" "ncurses"
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {
inherit version;
description = "Show progress of open files and file systems"; description = "Show progress of open files and file systems";
homepage = https://code.google.com/p/ftop/; homepage = https://code.google.com/p/ftop/;
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
longDescription = '' longDescription = ''
Ftop is to files what top is to processes. The progress of all open files ftop is to files what top is to processes. The progress of all open files
and file systems can be monitored. If run as a regular user, the set of and file systems can be monitored. If run as a regular user, the set of
open files will be limited to those in that user's processes (which is open files will be limited to those in that user's processes (which is
generally all that is of interest to the user). generally all that is of interest to the user).

View File

@ -22,7 +22,7 @@ stdenv.mkDerivation {
enableParallelBuilding = true; enableParallelBuilding = true;
installFlags = "DESTDIR=$(out) prefix= DOCDIR=/share/doc"; installFlags = [ "DESTDIR=$(out)" "prefix=" "DOCDIR=/share/doc" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
inherit version; inherit version;

View File

@ -20,9 +20,10 @@ stdenv.mkDerivation {
substituteInPlace getver.sh --replace ver=unknown ver=${version} substituteInPlace getver.sh --replace ver=unknown ver=${version}
''; '';
makeFlags = "PREFIX=$(out)"; makeFlags = [ "PREFIX=$(out)" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
inherit version;
description = "Top-like tool for viewing AMD Radeon GPU utilization"; description = "Top-like tool for viewing AMD Radeon GPU utilization";
longDescription = '' longDescription = ''
View GPU utilization, both for the total activity percent and individual View GPU utilization, both for the total activity percent and individual

View File

@ -15,7 +15,7 @@ in stdenv.mkDerivation {
sed -e "s|/usr||g" -i Makefile sed -e "s|/usr||g" -i Makefile
''; '';
makeFlags = "DESTDIR=$(out) BINDIR=/bin"; makeFlags = [ "DESTDIR=$(out)" "BINDIR=/bin" ];
postInstall = '' postInstall = ''
# Match the man page: # Match the man page:

View File

@ -15,12 +15,13 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
makeFlags = "PREFIX=$(out)"; makeFlags = [ "PREFIX=$(out)" ];
doCheck = false; # tests take a very long time doCheck = false; # tests take a very long time
checkTarget = "test"; checkTarget = "test";
meta = with stdenv.lib; { meta = with stdenv.lib; {
inherit version;
description = "Extremely fast compression algorithm"; description = "Extremely fast compression algorithm";
longDescription = '' longDescription = ''
Very fast lossless compression algorithm, providing compression speed Very fast lossless compression algorithm, providing compression speed

View File

@ -26,18 +26,18 @@ in stdenv.mkDerivation {
name = "boxfs-${version}"; name = "boxfs-${version}";
src = srcs.boxfs2; src = srcs.boxfs2;
prePatch = with srcs; '' prePatch = with srcs; ''
substituteInPlace Makefile --replace "git pull" "true" substituteInPlace Makefile --replace "git pull" "true"
cp -a --no-preserve=mode ${libapp} libapp cp -a --no-preserve=mode ${libapp} libapp
cp -a --no-preserve=mode ${libjson} libjson cp -a --no-preserve=mode ${libjson} libjson
''; '';
patches = [ ./work-around-API-borkage.patch ]; patches = [ ./work-around-API-borkage.patch ];
buildInputs = [ curl fuse libxml2 ]; buildInputs = [ curl fuse libxml2 ];
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
buildFlags = "static"; buildFlags = [ "static" ];
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
@ -45,6 +45,7 @@ in stdenv.mkDerivation {
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {
inherit version;
description = "FUSE file system for box.com accounts"; description = "FUSE file system for box.com accounts";
longDescription = '' longDescription = ''
Store files on box.com (an account is required). The first time you run Store files on box.com (an account is required). The first time you run

View File

@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
url = "mirror://sourceforge/gparted/${name}.tar.bz2"; url = "mirror://sourceforge/gparted/${name}.tar.bz2";
}; };
configureFlags = "--disable-doc"; configureFlags = [ "--disable-doc" ];
buildInputs = [ parted gtk glib libuuid gtkmm libxml2 hicolor_icon_theme ]; buildInputs = [ parted gtk glib libuuid gtkmm libxml2 hicolor_icon_theme ];
nativeBuildInputs = [ intltool gettext makeWrapper pkgconfig ]; nativeBuildInputs = [ intltool gettext makeWrapper pkgconfig ];

View File

@ -14,7 +14,7 @@ in stdenv.mkDerivation {
buildInputs = [ libnfnetlink ]; buildInputs = [ libnfnetlink ];
installFlags = "PREFIX=$(out) INSTALLPREFIX=$(out)"; installFlags = [ "PREFIX=$(out)" "INSTALLPREFIX=$(out)" ];
enableParallelBuilding = true; enableParallelBuilding = true;

View File

@ -28,7 +28,7 @@ stdenv.mkDerivation {
enableParallelBuilding = true; enableParallelBuilding = true;
# All files installed to /etc are just static data that can go in the store # All files installed to /etc are just static data that can go in the store
makeFlags = "PREFIX=$(out) ETCDIR=$(out)/etc"; makeFlags = [ "PREFIX=$(out)" "ETCDIR=$(out)/etc" ];
postInstall = '' postInstall = ''
ln -sv ${geolite-legacy}/share/GeoIP/GeoIP.dat $out/etc/netsniff-ng/country4.dat ln -sv ${geolite-legacy}/share/GeoIP/GeoIP.dat $out/etc/netsniff-ng/country4.dat

View File

@ -17,7 +17,11 @@ stdenv.mkDerivation {
--replace "stackprotectorstrong => 1" "stackprotectorstrong => 0" --replace "stackprotectorstrong => 1" "stackprotectorstrong => 0"
''; '';
configureFlags = "--disable-dselect --with-admindir=/var/lib/dpkg PERL_LIBDIR=$(out)/${perl.libPrefix}"; configureFlags = [
"--disable-dselect"
"--with-admindir=/var/lib/dpkg"
"PERL_LIBDIR=$(out)/${perl.libPrefix}"
];
preConfigure = '' preConfigure = ''
# Nice: dpkg has a circular dependency on itself. Its configure # Nice: dpkg has a circular dependency on itself. Its configure

View File

@ -9,6 +9,16 @@ stdenv.mkDerivation rec {
url = "http://foremost.sourceforge.net/pkg/${name}.tar.gz"; url = "http://foremost.sourceforge.net/pkg/${name}.tar.gz";
}; };
patches = [ ./makefile.patch ];
makeFlags = [ "PREFIX=$(out)" ];
enableParallelBuilding = true;
preInstall = ''
mkdir -p $out/{bin,share/man/man8}
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
inherit version; inherit version;
description = "Recover files based on their contents"; description = "Recover files based on their contents";
@ -26,14 +36,4 @@ stdenv.mkDerivation rec {
platforms = platforms.linux; platforms = platforms.linux;
maintainers = with maintainers; [ nckx ]; maintainers = with maintainers; [ nckx ];
}; };
patches = [ ./makefile.patch ];
makeFlags = "PREFIX=$(out)";
enableParallelBuilding = true;
preInstall = ''
mkdir -p $out/{bin,share/man/man8}
'';
} }

View File

@ -19,7 +19,7 @@ in stdenv.mkDerivation {
enableParallelBuilding = true; enableParallelBuilding = true;
installFlags = "DESTDIR=$(out)"; installFlags = [ "DESTDIR=$(out)" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
inherit version; inherit version;

View File

@ -11,6 +11,10 @@ stdenv.mkDerivation {
owner = "theZiz"; owner = "theZiz";
}; };
makeFlags = [ "PREFIX=$(out)" ];
enableParallelBuilding = true;
meta = with stdenv.lib; { meta = with stdenv.lib; {
inherit version; inherit version;
description = "ANSI HTML Adapter"; description = "ANSI HTML Adapter";
@ -22,8 +26,4 @@ stdenv.mkDerivation {
platforms = platforms.linux; platforms = platforms.linux;
maintainers = with maintainers; [ nckx ]; maintainers = with maintainers; [ nckx ];
}; };
makeFlags = "PREFIX=$(out)";
enableParallelBuilding = true;
} }