2021-11-05 13:59:08 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, libuuid, libselinux }:
|
2010-08-20 21:53:43 +00:00
|
|
|
|
2021-11-05 13:59:08 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nilfs-utils";
|
|
|
|
version = "2.2.8";
|
2010-08-20 21:53:43 +00:00
|
|
|
|
2021-11-05 13:59:08 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nilfs-dev";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "094mw7dsyppyiyzfdnf3f5hlkrh4bidk1kvvpn1kcvw5vn2xpfk7";
|
|
|
|
};
|
2010-08-20 21:53:43 +00:00
|
|
|
|
2021-11-05 13:59:08 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
|
|
|
buildInputs = [ libuuid libselinux ];
|
2018-03-26 18:57:24 +00:00
|
|
|
|
2021-11-20 08:02:01 +00:00
|
|
|
# According to upstream, libmount should be detected automatically but the
|
|
|
|
# build system fails to do this. This is likely a bug with their build system
|
|
|
|
# hence it is explicitly enabled here.
|
|
|
|
configureFlags = [ "--with-libmount" ];
|
|
|
|
|
2021-11-05 13:59:08 +00:00
|
|
|
installFlags = [
|
|
|
|
"sysconfdir=${placeholder "out"}/etc"
|
|
|
|
"root_sbindir=${placeholder "out"}/sbin"
|
2019-04-06 13:54:25 +00:00
|
|
|
];
|
2018-07-07 06:38:05 +00:00
|
|
|
|
2017-08-30 15:53:03 +00: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 = ''
|
2021-11-05 13:59:08 +00:00
|
|
|
find . -name .libs -exec rm -rf -- {} +
|
2017-08-30 15:53:03 +00:00
|
|
|
'';
|
2016-08-31 22:47:35 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2010-08-20 21:53:43 +00:00
|
|
|
description = "NILFS utilities";
|
2018-09-07 20:29:04 +00:00
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = with licenses; [ gpl2 lgpl21 ];
|
2014-11-03 22:25:01 +00:00
|
|
|
downloadPage = "http://nilfs.sourceforge.net/en/download.html";
|
|
|
|
updateWalker = true;
|
2010-08-20 21:53:43 +00:00
|
|
|
};
|
2014-11-03 22:25:01 +00:00
|
|
|
}
|