Merge pull request #146825 from S-NA/updates/nilfs-utils

nilfs-utils: fix hardcoded paths

authored by Artturi and committed by GitHub 5e785a95 ce8a5297

+8 -1
+8 -1
pkgs/tools/filesystems/nilfs-utils/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, libuuid, libselinux }: 2 3 stdenv.mkDerivation rec { 4 pname = "nilfs-utils"; ··· 14 nativeBuildInputs = [ autoreconfHook ]; 15 16 buildInputs = [ libuuid libselinux ]; 17 18 # 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 }: 3 4 stdenv.mkDerivation rec { 5 pname = "nilfs-utils"; ··· 15 nativeBuildInputs = [ autoreconfHook ]; 16 17 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 + ''; 24 25 # 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