···1-{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, libuuid, libselinux }:
023stdenv.mkDerivation rec {
4 pname = "nilfs-utils";
···14 nativeBuildInputs = [ autoreconfHook ];
1516 buildInputs = [ libuuid libselinux ];
0000001718 # According to upstream, libmount should be detected automatically but the
19 # build system fails to do this. This is likely a bug with their build system
···1+{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, libuuid, libselinux
2+, e2fsprogs }:
34stdenv.mkDerivation rec {
5 pname = "nilfs-utils";
···15 nativeBuildInputs = [ autoreconfHook ];
1617 buildInputs = [ libuuid libselinux ];
18+19+ postPatch = ''
20+ # Fix up hardcoded paths.
21+ substituteInPlace lib/cleaner_exec.c --replace /sbin/ $out/bin/
22+ substituteInPlace sbin/mkfs/mkfs.c --replace /sbin/ ${lib.getBin e2fsprogs}/bin/
23+ '';
2425 # According to upstream, libmount should be detected automatically but the
26 # build system fails to do this. This is likely a bug with their build system