forked from mirror/nnn
add overlay
This commit is contained in:
parent
92921db76b
commit
d54b76c8d6
1 changed files with 9 additions and 5 deletions
14
flake.nix
14
flake.nix
|
@ -5,15 +5,19 @@
|
||||||
let
|
let
|
||||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||||
buildInputs = [ pkgs.gnumake pkgs.gcc pkgs.readline pkgs.pkg-config ];
|
buildInputs = [ pkgs.gnumake pkgs.gcc pkgs.readline pkgs.pkg-config ];
|
||||||
in {
|
nnn = pkgs.stdenv.mkDerivation {
|
||||||
devShell.x86_64-linux = pkgs.mkShell {
|
|
||||||
inherit buildInputs;
|
|
||||||
};
|
|
||||||
packages.x86_64-linux.default = pkgs.stdenv.mkDerivation {
|
|
||||||
pname = "nnn";
|
pname = "nnn";
|
||||||
version = "v4.9";
|
version = "v4.9";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
inherit buildInputs;
|
inherit buildInputs;
|
||||||
};
|
};
|
||||||
|
in {
|
||||||
|
devShell.x86_64-linux = pkgs.mkShell {
|
||||||
|
inherit buildInputs;
|
||||||
|
};
|
||||||
|
packages.x86_64-linux.default = nnn;
|
||||||
|
overlays.default = final: prev: {
|
||||||
|
inherit nnn;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue