2014-11-03 22:25:01 +00:00
|
|
|
{ stdenv, fetchurl, libuuid, libselinux }:
|
2010-08-20 22:53:43 +01:00
|
|
|
let
|
|
|
|
sourceInfo = rec {
|
2014-11-03 22:25:01 +00:00
|
|
|
version = "2.2.2";
|
2010-08-20 22:53:43 +01:00
|
|
|
url = "http://www.nilfs.org/download/nilfs-utils-${version}.tar.bz2";
|
2014-11-03 22:25:01 +00:00
|
|
|
sha256 = "1w2i5wy290y03hg72lhkrnmfhap04ki0kkv5m8q60a2frbv6ydql";
|
2010-08-20 22:53:43 +01:00
|
|
|
baseName = "nilfs-utils";
|
|
|
|
name = "${baseName}-${version}";
|
|
|
|
};
|
|
|
|
in
|
2014-11-03 22:25:01 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
src = fetchurl {
|
2010-08-20 22:53:43 +01:00
|
|
|
url = sourceInfo.url;
|
2014-11-03 22:25:01 +00:00
|
|
|
sha256 = sourceInfo.sha256;
|
2010-08-20 22:53:43 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
inherit (sourceInfo) name version;
|
2014-11-03 22:25:01 +00:00
|
|
|
buildInputs = [libuuid libselinux];
|
2010-08-20 22:53:43 +01:00
|
|
|
|
2014-11-03 22:25:01 +00:00
|
|
|
preConfigure = ''
|
|
|
|
sed -e '/sysconfdir=\/etc/d; ' -i configure
|
|
|
|
sed -e "s@sbindir=/sbin@sbindir=$out/sbin@" -i configure
|
|
|
|
sed -e 's@/sbin/@'"$out"'/sbin/@' -i ./lib/cleaner*.c
|
|
|
|
'';
|
2010-08-20 22:53:43 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "NILFS utilities";
|
2014-11-03 22:25:01 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers;
|
2010-08-20 22:53:43 +01:00
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
2014-11-03 22:25:01 +00:00
|
|
|
platforms = with stdenv.lib.platforms;
|
2010-08-20 22:53:43 +01:00
|
|
|
linux;
|
2014-11-03 22:25:01 +00:00
|
|
|
downloadPage = "http://nilfs.sourceforge.net/en/download.html";
|
|
|
|
updateWalker = true;
|
|
|
|
inherit version;
|
2010-08-20 22:53:43 +01:00
|
|
|
};
|
2014-11-03 22:25:01 +00:00
|
|
|
}
|