Merge pull request #146825 from S-NA/updates/nilfs-utils
nilfs-utils: fix hardcoded paths
This commit is contained in:
commit
5e785a95fc
1 changed files with 8 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, libuuid, libselinux }:
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, libuuid, libselinux
|
||||||
|
, e2fsprogs }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "nilfs-utils";
|
pname = "nilfs-utils";
|
||||||
|
@ -15,6 +16,12 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
buildInputs = [ libuuid libselinux ];
|
buildInputs = [ libuuid libselinux ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# Fix up hardcoded paths.
|
||||||
|
substituteInPlace lib/cleaner_exec.c --replace /sbin/ $out/bin/
|
||||||
|
substituteInPlace sbin/mkfs/mkfs.c --replace /sbin/ ${lib.getBin e2fsprogs}/bin/
|
||||||
|
'';
|
||||||
|
|
||||||
# According to upstream, libmount should be detected automatically but the
|
# 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
|
# build system fails to do this. This is likely a bug with their build system
|
||||||
# hence it is explicitly enabled here.
|
# hence it is explicitly enabled here.
|
||||||
|
|
Loading…
Reference in a new issue