summaryrefslogtreecommitdiffstats
path: root/jeschli/5pkgs/firefox/rmount
diff options
context:
space:
mode:
authorJeschli <jeschli@gmail.com>2020-04-23 19:47:18 +0200
committerJeschli <jeschli@gmail.com>2020-04-23 20:18:56 +0200
commitbe388387c629fc3f2da03d8de611eab9c5f2eb35 (patch)
tree47ea72424e8439a9dd9b7e9d41db403f647e40d5 /jeschli/5pkgs/firefox/rmount
parent352c1aa944b4f175f9d6578f16f339e3126d15e6 (diff)
j firefox: overlay from 2configs -> 5pkgs/firefox
Diffstat (limited to 'jeschli/5pkgs/firefox/rmount')
-rw-r--r--jeschli/5pkgs/firefox/rmount/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/jeschli/5pkgs/firefox/rmount/default.nix b/jeschli/5pkgs/firefox/rmount/default.nix
new file mode 100644
index 0000000..22631f4
--- /dev/null
+++ b/jeschli/5pkgs/firefox/rmount/default.nix
@@ -0,0 +1,34 @@
+{ stdenv, fetchgit, makeWrapper, lib, pkgs ? import <nixpkgs> {} }:
+with pkgs;
+
+stdenv.mkDerivation rec {
+ name = "rmount-${version}";
+ version = "1.0.1";
+ rev = "v${version}";
+
+ src = fetchgit {
+ rev = "9df124780d2e66f01c70afaecf92090669c5ffb6";
+ url = "https://github.com/Luis-Hebendanz/rmount";
+ sha256 = "0ydb6sspfnfa3y6gg1r8sk4r58il6636lpqwb2rw7dzmb4b8hpd2";
+ };
+
+ buildInputs = [ stdenv makeWrapper ];
+
+ installPhase = ''
+ mkdir -p $out/bin
+ mkdir -p $out/share/man/man1
+ cp ${src}/rmount.man $out/share/man/man1/rmount.1
+ cp ${src}/rmount.bash $out/bin/rmount-noenv
+ cp ${src}/config.json $out/share/config.json
+ chmod +x $out/bin/rmount-noenv
+
+ makeWrapper $out/bin/rmount-noenv $out/bin/rmount \
+ --prefix PATH : ${lib.makeBinPath [ nmap jq cifs-utils sshfs ]}
+ '';
+
+ meta = {
+ homepage = "https://github.com/Luis-Hebendanz/rmount";
+ description = "Remote mount utility which parses a json file";
+ license = stdenv.lib.licenses.mit;
+ };
+}