nixpkgs/pkgs/tools/filesystems/nilfs-utils/default.nix

39 lines
995 B
Nix
Raw Normal View History

2014-11-03 23:25:01 +01:00
{ stdenv, fetchurl, libuuid, libselinux }:
let
sourceInfo = rec {
2016-05-15 22:10:01 +02:00
version = "2.2.4";
2014-11-05 07:23:18 +01:00
url = "http://nilfs.sourceforge.net/download/nilfs-utils-${version}.tar.bz2";
2016-05-15 22:10:01 +02:00
sha256 = "1ywmhrf6dz5g3ik4wf3hlnzmv1qa0q2qrgh3ir1pmbdhlgmkxdhm";
baseName = "nilfs-utils";
name = "${baseName}-${version}";
};
in
2014-11-03 23:25:01 +01:00
stdenv.mkDerivation rec {
src = fetchurl {
url = sourceInfo.url;
2014-11-03 23:25:01 +01:00
sha256 = sourceInfo.sha256;
};
inherit (sourceInfo) name version;
2014-11-03 23:25:01 +01:00
buildInputs = [libuuid libselinux];
2014-11-03 23:25:01 +01: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
'';
meta = {
description = "NILFS utilities";
2014-11-03 23:25:01 +01:00
maintainers = with stdenv.lib.maintainers;
[
raskin
];
2014-11-03 23:25:01 +01:00
platforms = with stdenv.lib.platforms;
linux;
2014-11-03 23:25:01 +01:00
downloadPage = "http://nilfs.sourceforge.net/en/download.html";
updateWalker = true;
inherit version;
};
2014-11-03 23:25:01 +01:00
}