forked from mirror/nnn
add flake
This commit is contained in:
parent
5e1e9c9c40
commit
be006e3507
3 changed files with 13 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,3 +3,4 @@
|
|||
nnn
|
||||
src/icons-generated*.h
|
||||
src/icons-hash-gen
|
||||
result
|
||||
|
|
2
Makefile
2
Makefile
|
@ -1,6 +1,6 @@
|
|||
VERSION = $(shell grep -m1 VERSION $(SRC) | cut -f 2 -d'"')
|
||||
|
||||
PREFIX ?= /usr/local
|
||||
PREFIX ?= $(out)
|
||||
MANPREFIX ?= $(PREFIX)/share/man
|
||||
DESKTOPPREFIX ?= $(PREFIX)/share/applications
|
||||
DESKTOPICONPREFIX ?= $(PREFIX)/share/icons/hicolor
|
||||
|
|
13
flake.nix
13
flake.nix
|
@ -2,9 +2,18 @@
|
|||
description = "nnn, the file manager";
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let pkgs = nixpkgs.legacyPackages.x86_64-linux; in {
|
||||
devShell.x86_64-linux = pkgs.mkShell {
|
||||
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 {
|
||||
pname = "nnn";
|
||||
version = "v4.9";
|
||||
src = ./.;
|
||||
inherit buildInputs;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue