sfm: init at 0.1

This commit is contained in:
Nikolay Korotkiy 2021-06-01 15:26:42 +03:00
parent cf7fde4b02
commit 0ac0332ce8
No known key found for this signature in database
GPG Key ID: D1DE6D7F693663A5
2 changed files with 29 additions and 0 deletions

View 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 ];
};
}

View File

@ -7223,6 +7223,8 @@ in
nnn = callPackage ../applications/misc/nnn { };
sfm = callPackage ../applications/misc/sfm { };
shfm = callPackage ../applications/misc/shfm { };
noise-repellent = callPackage ../applications/audio/noise-repellent { };