lol
1{ stdenv, fetchurl, libuuid, libselinux }:
2let
3 sourceInfo = rec {
4 version = "2.2.3";
5 url = "http://nilfs.sourceforge.net/download/nilfs-utils-${version}.tar.bz2";
6 sha256 = "1sv0p5d9ivik7lhrdynf6brma66llcvn11zhzasws12n4sfk6k6q";
7 baseName = "nilfs-utils";
8 name = "${baseName}-${version}";
9 };
10in
11stdenv.mkDerivation rec {
12 src = fetchurl {
13 url = sourceInfo.url;
14 sha256 = sourceInfo.sha256;
15 };
16
17 inherit (sourceInfo) name version;
18 buildInputs = [libuuid libselinux];
19
20 preConfigure = ''
21 sed -e '/sysconfdir=\/etc/d; ' -i configure
22 sed -e "s@sbindir=/sbin@sbindir=$out/sbin@" -i configure
23 sed -e 's@/sbin/@'"$out"'/sbin/@' -i ./lib/cleaner*.c
24 '';
25
26 meta = {
27 description = "NILFS utilities";
28 maintainers = with stdenv.lib.maintainers;
29 [
30 raskin
31 ];
32 platforms = with stdenv.lib.platforms;
33 linux;
34 downloadPage = "http://nilfs.sourceforge.net/en/download.html";
35 updateWalker = true;
36 inherit version;
37 };
38}