From 75edb3a4e1386f07d02a1cff30efe6c54a30ddd8 Mon Sep 17 00:00:00 2001 From: Artur Manuel Date: Mon, 5 Aug 2024 03:04:28 +0100 Subject: [PATCH] fix(flake): remove overlay this was removed because of a recent learning that you should **not** define overlays in your flake --- flake.nix | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/flake.nix b/flake.nix index 9937f71..821f0e2 100644 --- a/flake.nix +++ b/flake.nix @@ -17,25 +17,18 @@ "x86_64-linux" ]; - flake = { - overlays.default = final: _prev: { - pankomacs = final.callPackage ./package { pkgs = final; }; - }; - }; - perSystem = { pkgs, self', config, system, ... }: { _module.args.pkgs = import inputs.nixpkgs { inherit system; overlays = [ (import inputs.emacs) - inputs.self.overlays.default ]; }; - packages.pankomacs = pkgs.pankomacs; + packages.pankomacs = pkgs.callPackage ./nix/package.nix; packages.default = self'.packages.pankomacs; apps.pankomacs.program = "${self'.packages.pankomacs}/bin/emacs"; - apps.default = config.apps.pankomacs; + apps.default = self'.apps.pankomacs; formatter = pkgs.nixpkgs-fmt; };