diff options
author | Thomas Mühlbacher <tmuehlbacher@posteo.net> | 2024-05-22 20:57:20 +0200 |
---|---|---|
committer | Thomas Mühlbacher <tmuehlbacher@posteo.net> | 2024-05-22 22:35:05 +0200 |
commit | 0fcdd67bf0fcd38a61a2eda647b9b7342b558ff2 (patch) | |
tree | 6175f6a814f2142174d5659e439250961bcd4cf6 | |
parent | 5e9d1953a2b36f1cd93af3638698d80266b2b623 (diff) |
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>
-rw-r--r-- | flake.nix | 25 |
1 files changed, 6 insertions, 19 deletions
@@ -13,29 +13,16 @@ }; outputs = - { - self, - nixpkgs, - utils, - ... - }: - { - overlays.default = final: prev: { bcachefs = final.callPackage ./build.nix { }; }; - } - // utils.lib.eachDefaultSystem ( + { nixpkgs, utils, ... }: + utils.lib.eachDefaultSystem ( system: let - pkgs = import nixpkgs { - inherit system; - overlays = [ self.overlays.default ]; - }; + pkgs = import nixpkgs { inherit system; }; in rec { - packages = { - inherit (pkgs) bcachefs; - bcachefs-fuse = pkgs.bcachefs.override { fuseSupport = true; }; - default = pkgs.bcachefs; - }; + packages.default = packages.bcachefs-tools; + packages.bcachefs-tools = pkgs.callPackage ./build.nix { }; + packages.bcachefs-tools-fuse = packages.bcachefs-tools.override { fuseSupport = true; }; formatter = pkgs.nixfmt-rfc-style; |