mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
bcachefs-tools: fixup for version 1.4.1
This commit is contained in:
parent
b1ce631c29
commit
6b8dc42ee1
|
@ -19,6 +19,7 @@
|
|||
, rustPlatform
|
||||
, makeWrapper
|
||||
, writeScript
|
||||
, python3
|
||||
, fuseSupport ? false
|
||||
}:
|
||||
|
||||
|
@ -26,7 +27,6 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
pname = "bcachefs-tools";
|
||||
version = "1.4.1";
|
||||
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "koverstreet";
|
||||
repo = "bcachefs-tools";
|
||||
|
@ -69,8 +69,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
checkFlags = [ "BCACHEFS_TEST_USE_VALGRIND=no" ];
|
||||
|
||||
makeFlags = [
|
||||
"DESTDIR=${placeholder "out"}"
|
||||
"PREFIX="
|
||||
"PREFIX=${placeholder "out"}"
|
||||
"VERSION=${finalAttrs.version}"
|
||||
"INITRAMFS_DIR=${placeholder "out"}/etc/initramfs-tools"
|
||||
];
|
||||
|
@ -79,6 +78,17 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
rm tests/test_fuse.py
|
||||
'';
|
||||
|
||||
# Tries to install to the 'systemd-minimal' and 'udev' nix installation paths
|
||||
installFlags = [
|
||||
"PKGCONFIG_SERVICEDIR=$(out)/lib/systemd/system"
|
||||
"PKGCONFIG_UDEVDIR=$(out)/lib/udev"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
substituteInPlace $out/libexec/bcachefsck_all \
|
||||
--replace "/usr/bin/python3" "${python3}/bin/python3"
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
tests = {
|
||||
smoke-test = nixosTests.bcachefs;
|
||||
|
|
Loading…
Reference in a new issue