summary refs log tree commit diff
path: root/pkgs/applications/misc/shfm
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2021-04-17 03:07:29 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2021-04-17 03:11:20 -0300
commit6ab8cd7a22bbfa084966e42f349c043886f2d147 (patch)
tree69a5a4f49880627df3e9ebd048b822e7353da871 /pkgs/applications/misc/shfm
parent67c4ab77be9daaca447c14ec5c3fdcb62f581ad0 (diff)
downloadnixpkgs-6ab8cd7a22bbfa084966e42f349c043886f2d147.tar
nixpkgs-6ab8cd7a22bbfa084966e42f349c043886f2d147.tar.gz
nixpkgs-6ab8cd7a22bbfa084966e42f349c043886f2d147.tar.bz2
nixpkgs-6ab8cd7a22bbfa084966e42f349c043886f2d147.tar.lz
nixpkgs-6ab8cd7a22bbfa084966e42f349c043886f2d147.tar.xz
nixpkgs-6ab8cd7a22bbfa084966e42f349c043886f2d147.tar.zst
nixpkgs-6ab8cd7a22bbfa084966e42f349c043886f2d147.zip
shfm: init at 0.4.2
Diffstat (limited to 'pkgs/applications/misc/shfm')
-rw-r--r--pkgs/applications/misc/shfm/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/applications/misc/shfm/default.nix b/pkgs/applications/misc/shfm/default.nix
new file mode 100644
index 00000000000..602151075fc
--- /dev/null
+++ b/pkgs/applications/misc/shfm/default.nix
@@ -0,0 +1,38 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+}:
+
+stdenv.mkDerivation rec {
+  pname = "shfm";
+  version = "0.4.2";
+
+  src = fetchFromGitHub {
+    owner = "dylanaraps";
+    repo = pname;
+    rev = version;
+    hash = "sha256-ilVrUFfyzOZgjbBTqlHA9hLaTHw1xHFo1Y/tjXygNEs=";
+  };
+
+  postPatch = ''
+    patchShebangs ./shfm
+  '';
+
+  dontConfigure = true;
+  dontBuild = true;
+
+  installPhase = ''
+    runHook preInstall
+    install -D shfm --target-directory $out/bin/
+    install -D README --target-directory $out/share/doc/${pname}/
+    runHook postInstall
+  '';
+
+  meta = with lib; {
+    homepage = "https://github.com/dylanaraps/shfm";
+    description = "POSIX-shell based file manager";
+    license = licenses.mit;
+    maintainers = with maintainers; [ AndersonTorres ];
+    platforms = platforms.all;
+  };
+}