build(nix): rm nixpkgs overlay

it shouldn't really be our job to define an overlay. it doesn't do
anything for us, afaict, and is trivial to implement for downstream
users of the flake if they so desire.

also the overlay doesn't even overlay anything, there is no package
called `bcachefs` in nixpkgs.

Signed-off-by: Thomas Mühlbacher <tmuehlbacher@posteo.net>
This commit is contained in:
Thomas Mühlbacher 2024-05-22 20:57:20 +02:00
parent 5e9d1953a2
commit 0fcdd67bf0

View File

@ -13,29 +13,16 @@
}; };
outputs = outputs =
{ { nixpkgs, utils, ... }:
self, utils.lib.eachDefaultSystem (
nixpkgs,
utils,
...
}:
{
overlays.default = final: prev: { bcachefs = final.callPackage ./build.nix { }; };
}
// utils.lib.eachDefaultSystem (
system: system:
let let
pkgs = import nixpkgs { pkgs = import nixpkgs { inherit system; };
inherit system;
overlays = [ self.overlays.default ];
};
in in
rec { rec {
packages = { packages.default = packages.bcachefs-tools;
inherit (pkgs) bcachefs; packages.bcachefs-tools = pkgs.callPackage ./build.nix { };
bcachefs-fuse = pkgs.bcachefs.override { fuseSupport = true; }; packages.bcachefs-tools-fuse = packages.bcachefs-tools.override { fuseSupport = true; };
default = pkgs.bcachefs;
};
formatter = pkgs.nixfmt-rfc-style; formatter = pkgs.nixfmt-rfc-style;