From d54b76c8d61b5410332f117d51fac24539894235 Mon Sep 17 00:00:00 2001 From: tezlm Date: Fri, 13 Sep 2024 04:27:35 +0000 Subject: [PATCH] add overlay --- flake.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 22bdc43d..505199ff 100644 --- a/flake.nix +++ b/flake.nix @@ -5,15 +5,19 @@ let pkgs = nixpkgs.legacyPackages.x86_64-linux; buildInputs = [ pkgs.gnumake pkgs.gcc pkgs.readline pkgs.pkg-config ]; - in { - devShell.x86_64-linux = pkgs.mkShell { - inherit buildInputs; - }; - packages.x86_64-linux.default = pkgs.stdenv.mkDerivation { + nnn = pkgs.stdenv.mkDerivation { pname = "nnn"; version = "v4.9"; src = ./.; inherit buildInputs; }; + in { + devShell.x86_64-linux = pkgs.mkShell { + inherit buildInputs; + }; + packages.x86_64-linux.default = nnn; + overlays.default = final: prev: { + inherit nnn; + }; }; }