Strip binaries from fuse3 for dev
This commit is contained in:
parent
f2ca3184b6
commit
bd961a5ff3
@ -16,6 +16,11 @@
|
|||||||
systems = [ "x86_64-linux" ];
|
systems = [ "x86_64-linux" ];
|
||||||
perSystem = { inputs', system, pkgs, config, ... }:
|
perSystem = { inputs', system, pkgs, config, ... }:
|
||||||
let
|
let
|
||||||
|
binlessFuse = pkgs.fuse3.overrideAttrs (old: {
|
||||||
|
postFixup = old.postFixup + ''
|
||||||
|
rm -r "$out"/{,s}bin
|
||||||
|
'';
|
||||||
|
});
|
||||||
rustPkgs = pkgs.rustBuilder.makePackageSet {
|
rustPkgs = pkgs.rustBuilder.makePackageSet {
|
||||||
rustToolchain = pkgs.rust-bin.stable."1.72.1".default;
|
rustToolchain = pkgs.rust-bin.stable."1.72.1".default;
|
||||||
packageFun = import ./Cargo.nix;
|
packageFun = import ./Cargo.nix;
|
||||||
@ -24,7 +29,7 @@
|
|||||||
name = "fuser";
|
name = "fuser";
|
||||||
overrideAttrs = drv: {
|
overrideAttrs = drv: {
|
||||||
propagatedBuildInputs = drv.propagatedBuildInputs ++ [
|
propagatedBuildInputs = drv.propagatedBuildInputs ++ [
|
||||||
pkgs.fuse3
|
binlessFuse
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
@ -53,7 +58,7 @@
|
|||||||
language.c = with pkgs; rec {
|
language.c = with pkgs; rec {
|
||||||
compiler = gcc;
|
compiler = gcc;
|
||||||
libraries = [
|
libraries = [
|
||||||
fuse3
|
binlessFuse
|
||||||
];
|
];
|
||||||
includes = libraries;
|
includes = libraries;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user