diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-06-05 19:01:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-05 19:01:56 +0200 |
commit | 6a03eb62abf4284bb507e2c546a56539120fede9 (patch) | |
tree | 315d2c0b7edc47477f0c97c3433c0146b20d0a7e /pkgs/applications/misc | |
parent | 59edafbc31cddbde119210165edfd7b758334a48 (diff) | |
parent | 0ac0332ce878d7d0c3cf26a12288447edca7b0b6 (diff) |
Merge pull request #125217 from sikmir/sfm
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r-- | pkgs/applications/misc/sfm/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/applications/misc/sfm/default.nix b/pkgs/applications/misc/sfm/default.nix new file mode 100644 index 0000000000000..3bbcc939d2fbd --- /dev/null +++ b/pkgs/applications/misc/sfm/default.nix @@ -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 ]; + }; +} |