mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-22 00:00:03 +03:00
fixup! nix: overhaul build system.
Signed-off-by: Daniel Hill <daniel@gluo.nz>
This commit is contained in:
parent
8accfdc3c5
commit
3c39b422ac
8
base.nix
8
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 = {
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user