1
0
Fork 0
forked from mirror/nnn

add flake

This commit is contained in:
tezlm 2024-02-05 18:02:35 -08:00
parent 5e1e9c9c40
commit be006e3507
Signed by: tezlm
GPG key ID: 649733FCD94AFBBA
3 changed files with 13 additions and 3 deletions

1
.gitignore vendored
View file

@ -3,3 +3,4 @@
nnn
src/icons-generated*.h
src/icons-hash-gen
result

View file

@ -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

View file

@ -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;
};
};
}