1 { lib, stdenv, nmap, jq, cifs-utils, sshfs, fetchFromGitHub, makeWrapper }:
3 stdenv.mkDerivation rec {
8 src = fetchFromGitHub {
10 owner = "Luis-Hebendanz";
12 sha256 = "0j1ayncw1nnmgna7vyx44vwinh4ah1b0l5y8agc7i4s8clbvy3h0";
15 nativeBuildInputs = [ makeWrapper ];
18 install -D ${src}/rmount.man $out/share/man/man1/rmount.1
19 install -D ${src}/rmount.bash $out/bin/rmount
20 install -D ${src}/config.json $out/share/config.json
22 wrapProgram $out/bin/rmount --prefix PATH : ${lib.makeBinPath [ nmap jq cifs-utils sshfs ]}
26 homepage = "https://github.com/Luis-Hebendanz/rmount";
27 description = "Remote mount utility which parses a json file";
28 license = licenses.mit;
29 maintainers = [ maintainers.luis ];
30 platforms = platforms.linux;