···1717 substituteInPlace freefall.c --replace "alarm(2)" "alarm(7)"
1818 '';
19192020- makeFlags = "PREFIX=$(out)";
2020+ makeFlags = [ "PREFIX=$(out)" ];
21212222 meta = with stdenv.lib; {
2323 description = "Free-fall protection for spinning HP/Dell laptop hard drives";
+5-3
pkgs/os-specific/linux/ftop/default.nix
···11{ stdenv, fetchurl, ncurses }:
2233+let version = "1.0"; in
34stdenv.mkDerivation rec {
44- name = "ftop-1.0";
55+ name = "ftop-${version}";
5667 src = fetchurl {
78 url = "http://ftop.googlecode.com/files/${name}.tar.bz2";
···1415 ./ftop-fix_buffer_overflow.patch
1516 ./ftop-fix_printf_format.patch
1617 ];
1717- patchFlags = "-p0";
1818+ patchFlags = [ "-p0" ];
18191920 postPatch = ''
2021 substituteInPlace configure --replace "curses" "ncurses"
2122 '';
22232324 meta = with stdenv.lib; {
2525+ inherit version;
2426 description = "Show progress of open files and file systems";
2527 homepage = https://code.google.com/p/ftop/;
2628 license = licenses.gpl3Plus;
2729 longDescription = ''
2828- Ftop is to files what top is to processes. The progress of all open files
3030+ ftop is to files what top is to processes. The progress of all open files
2931 and file systems can be monitored. If run as a regular user, the set of
3032 open files will be limited to those in that user's processes (which is
3133 generally all that is of interest to the user).
···2828 enableParallelBuilding = true;
29293030 # All files installed to /etc are just static data that can go in the store
3131- makeFlags = "PREFIX=$(out) ETCDIR=$(out)/etc";
3131+ makeFlags = [ "PREFIX=$(out)" "ETCDIR=$(out)/etc" ];
32323333 postInstall = ''
3434 ln -sv ${geolite-legacy}/share/GeoIP/GeoIP.dat $out/etc/netsniff-ng/country4.dat