Merge pull request #125217 from sikmir/sfm
This commit is contained in:
commit
6a03eb62ab
2 changed files with 29 additions and 0 deletions
27
pkgs/applications/misc/sfm/default.nix
Normal file
27
pkgs/applications/misc/sfm/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ lib, stdenv, fetchFromGitHub, conf ? null }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "sfm";
|
||||
version = "0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "afify";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-i4WzYaJKityIt+LPWCbd6UsPBaYoaS397l5BInOXQQA=";
|
||||
};
|
||||
|
||||
configFile = lib.optionalString (conf!=null) (lib.writeText "config.def.h" conf);
|
||||
|
||||
postPatch = lib.optionalString (conf!=null) "cp ${configFile} config.def.h";
|
||||
|
||||
installFlags = [ "PREFIX=$(out)" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simple file manager";
|
||||
homepage = "https://github.com/afify/sfm";
|
||||
license = licenses.isc;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ sikmir ];
|
||||
};
|
||||
}
|
|
@ -7264,6 +7264,8 @@ in
|
|||
|
||||
nnn = callPackage ../applications/misc/nnn { };
|
||||
|
||||
sfm = callPackage ../applications/misc/sfm { };
|
||||
|
||||
shfm = callPackage ../applications/misc/shfm { };
|
||||
|
||||
noise-repellent = callPackage ../applications/audio/noise-repellent { };
|
||||
|
|
Loading…
Reference in a new issue