nixpkgs/pkgs/applications/file-managers/clifm/default.nix
Peder Bergebakken Sundt 755d153a7a
Merge pull request #287915 from h7x4/treewide-add-main-program-4
treewide: add `mainProgram`
2024-02-15 01:45:40 +01:00

33 lines
869 B
Nix

{ stdenv, lib, fetchFromGitHub, libcap, acl, file, readline, python3 }:
stdenv.mkDerivation rec {
pname = "clifm";
version = "1.17";
src = fetchFromGitHub {
owner = "leo-arch";
repo = pname;
rev = "v${version}";
hash = "sha256-plJ2iKloRGtBSa1upSo675bMj6qczR6TQ043UQboxQE=";
};
buildInputs = [ libcap acl file readline python3];
makeFlags = [
"DESTDIR=${placeholder "out"}"
"DATADIR=/share"
"PREFIX=/"
];
enableParallelBuilding = true;
meta = with lib; {
homepage = "https://github.com/leo-arch/clifm";
description = "CliFM is a CLI-based, shell-like, and non-curses terminal file manager written in C: simple, fast, extensible, and lightweight as hell";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ nadir-ishiguro ];
platforms = platforms.unix;
mainProgram = "clifm";
};
}