2014-11-03 23:25:01 +01:00
|
|
|
{ stdenv, fetchurl, libuuid, libselinux }:
|
2010-08-20 23:53:43 +02:00
|
|
|
let
|
|
|
|
sourceInfo = rec {
|
2017-11-11 15:23:04 +01:00
|
|
|
version = "2.2.7";
|
2014-11-05 07:23:18 +01:00
|
|
|
url = "http://nilfs.sourceforge.net/download/nilfs-utils-${version}.tar.bz2";
|
2017-11-11 15:23:04 +01:00
|
|
|
sha256 = "01f09bvjk2crx65pxmxiw362wkkl3v2v144dfn3i7bk5gz253xic";
|
2010-08-20 23:53:43 +02:00
|
|
|
baseName = "nilfs-utils";
|
|
|
|
name = "${baseName}-${version}";
|
|
|
|
};
|
|
|
|
in
|
2014-11-03 23:25:01 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
src = fetchurl {
|
2010-08-20 23:53:43 +02:00
|
|
|
url = sourceInfo.url;
|
2014-11-03 23:25:01 +01:00
|
|
|
sha256 = sourceInfo.sha256;
|
2010-08-20 23:53:43 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
inherit (sourceInfo) name version;
|
2014-11-03 23:25:01 +01:00
|
|
|
buildInputs = [libuuid libselinux];
|
2010-08-20 23:53:43 +02:00
|
|
|
|
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
|
|
|
|
'';
|
2010-08-20 23:53:43 +02:00
|
|
|
|
2017-08-30 17:53:03 +02:00
|
|
|
# FIXME: https://github.com/NixOS/patchelf/pull/98 is in, but stdenv
|
|
|
|
# still doesn't use it
|
|
|
|
#
|
|
|
|
# To make sure patchelf doesn't mistakenly keep the reference via
|
|
|
|
# build directory
|
|
|
|
postInstall = ''
|
|
|
|
find . -name .libs | xargs rm -rf
|
|
|
|
'';
|
2016-09-01 00:47:35 +02:00
|
|
|
|
2010-08-20 23:53:43 +02:00
|
|
|
meta = {
|
|
|
|
description = "NILFS utilities";
|
2014-11-03 23:25:01 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers;
|
2010-08-20 23:53:43 +02:00
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
2014-11-03 23:25:01 +01:00
|
|
|
platforms = with stdenv.lib.platforms;
|
2010-08-20 23:53:43 +02:00
|
|
|
linux;
|
2014-11-03 23:25:01 +01:00
|
|
|
downloadPage = "http://nilfs.sourceforge.net/en/download.html";
|
|
|
|
updateWalker = true;
|
2010-08-20 23:53:43 +02:00
|
|
|
};
|
2014-11-03 23:25:01 +01:00
|
|
|
}
|