diff options
author | Artturi <Artturin@artturin.com> | 2021-11-21 04:36:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-21 04:36:14 +0200 |
commit | 5e785a95fced26c49163eb5ed4a88d2adc4f402b (patch) | |
tree | ab8e8564fe92434e3b240b4aebcff08851aa5a1e /pkgs/tools | |
parent | ce8a529715bc8551f7e1a3cafd821a257ae8bf76 (diff) | |
parent | 24aacf38082fac4de98d4bc2275ae3db38d273aa (diff) |
Merge pull request #146825 from S-NA/updates/nilfs-utils
nilfs-utils: fix hardcoded paths
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/filesystems/nilfs-utils/default.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/tools/filesystems/nilfs-utils/default.nix b/pkgs/tools/filesystems/nilfs-utils/default.nix index 07c2c5292dcf..3c2dfaf2f1d3 100644 --- a/pkgs/tools/filesystems/nilfs-utils/default.nix +++ b/pkgs/tools/filesystems/nilfs-utils/default.nix @@ -1,4 +1,5 @@ -{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, libuuid, libselinux }: +{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, libuuid, libselinux +, e2fsprogs }: stdenv.mkDerivation rec { pname = "nilfs-utils"; @@ -15,6 +16,12 @@ stdenv.mkDerivation rec { 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 # build system fails to do this. This is likely a bug with their build system # hence it is explicitly enabled here. |