summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Mühlbacher <tmuehlbacher@posteo.net>2024-05-22 20:57:20 +0200
committerThomas Mühlbacher <tmuehlbacher@posteo.net>2024-05-22 22:35:05 +0200
commit0fcdd67bf0fcd38a61a2eda647b9b7342b558ff2 (patch)
tree6175f6a814f2142174d5659e439250961bcd4cf6
parent5e9d1953a2b36f1cd93af3638698d80266b2b623 (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.nix25
1 files changed, 6 insertions, 19 deletions
diff --git a/flake.nix b/flake.nix
index d903bea8..dba647fe 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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;