1{ lib, stdenv, nmap, jq, cifs-utils, sshfs, fetchFromGitHub, makeWrapper }:
2
3stdenv.mkDerivation rec {
4
5 pname = "rmount";
6 version = "1.1.0";
7
8 src = fetchFromGitHub {
9 rev = "v${version}";
10 owner = "Luis-Hebendanz";
11 repo = "rmount";
12 sha256 = "0j1ayncw1nnmgna7vyx44vwinh4ah1b0l5y8agc7i4s8clbvy3h0";
13 };
14
15 nativeBuildInputs = [ makeWrapper ];
16
17 installPhase = ''
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
21
22 wrapProgram $out/bin/rmount --prefix PATH : ${lib.makeBinPath [ nmap jq cifs-utils sshfs ]}
23 '';
24
25 meta = with lib; {
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;
31 };
32}