From bd961a5ff34dce69acc6f9cbe42db95831f6f64a Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Fri, 29 Sep 2023 14:22:13 +0100 Subject: [PATCH] Strip binaries from fuse3 for dev --- flake.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 60bd312..202f3fd 100644 --- a/flake.nix +++ b/flake.nix @@ -16,6 +16,11 @@ systems = [ "x86_64-linux" ]; perSystem = { inputs', system, pkgs, config, ... }: let + binlessFuse = pkgs.fuse3.overrideAttrs (old: { + postFixup = old.postFixup + '' + rm -r "$out"/{,s}bin + ''; + }); rustPkgs = pkgs.rustBuilder.makePackageSet { rustToolchain = pkgs.rust-bin.stable."1.72.1".default; packageFun = import ./Cargo.nix; @@ -24,7 +29,7 @@ name = "fuser"; overrideAttrs = drv: { propagatedBuildInputs = drv.propagatedBuildInputs ++ [ - pkgs.fuse3 + binlessFuse ]; }; }) @@ -53,7 +58,7 @@ language.c = with pkgs; rec { compiler = gcc; libraries = [ - fuse3 + binlessFuse ]; includes = libraries; };