From 3c39b422acd3346321185be0ce263809e2a9a23f Mon Sep 17 00:00:00 2001 From: Daniel Hill Date: Tue, 3 Jan 2023 21:38:11 +1300 Subject: [PATCH] fixup! nix: overhaul build system. Signed-off-by: Daniel Hill --- base.nix | 8 +------- flake.nix | 5 +++-- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/base.nix b/base.nix index 29c86ac..0253fd7 100644 --- a/base.nix +++ b/base.nix @@ -1,5 +1,4 @@ { lib -, doCheck ? true , stdenvNoCC , callPackage , nixosTests @@ -7,11 +6,7 @@ , binary , mount , versionString ? "0.1" -, inShell ? false -, debugMode ? inShell -, testWithValgrind ? true -, fuseSupport ? false -, fuse3 ? null }: +}: stdenvNoCC.mkDerivation { pname = "bcachefs-tools"; @@ -43,7 +38,6 @@ stdenvNoCC.mkDerivation { ln -s "$out/bin/bcachefs-mount" "$out/bin/mount.bcachefs" ln -s "$out/bin" "$out/sbin" ''; - doCheck = doCheck; # needs bcachefs module loaded on builder passthru = { tests = { diff --git a/flake.nix b/flake.nix index 567a3dc..9ebcc13 100644 --- a/flake.nix +++ b/flake.nix @@ -13,11 +13,12 @@ utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages.${system}; - binary = pkgs.callPackage ./binary.nix { }; + binary = pkgs.callPackage ./binary.nix { + testWithValgrind = false; + }; mount = pkgs.callPackage ./rust-src/mount/default.nix { inherit binary; }; bcachefs = pkgs.callPackage ./base.nix { inherit binary mount; - testWithValgrind = false; }; in { packages = { -- 2.39.2