1{
2 lib,
3 stdenv,
4 nmap,
5 jq,
6 cifs-utils,
7 sshfs,
8 fetchFromGitHub,
9 makeWrapper,
10}:
11
12stdenv.mkDerivation rec {
13
14 pname = "rmount";
15 version = "1.1.0";
16
17 src = fetchFromGitHub {
18 rev = "v${version}";
19 owner = "Luis-Hebendanz";
20 repo = "rmount";
21 sha256 = "0j1ayncw1nnmgna7vyx44vwinh4ah1b0l5y8agc7i4s8clbvy3h0";
22 };
23
24 nativeBuildInputs = [ makeWrapper ];
25
26 installPhase = ''
27 install -D ${src}/rmount.man $out/share/man/man1/rmount.1
28 install -D ${src}/rmount.bash $out/bin/rmount
29 install -D ${src}/config.json $out/share/config.json
30
31 wrapProgram $out/bin/rmount --prefix PATH : ${
32 lib.makeBinPath [
33 nmap
34 jq
35 cifs-utils
36 sshfs
37 ]
38 }
39 '';
40
41 meta = with lib; {
42 homepage = "https://github.com/Luis-Hebendanz/rmount";
43 description = "Remote mount utility which parses a json file";
44 license = licenses.mit;
45 maintainers = [ maintainers.qubasa ];
46 platforms = platforms.linux;
47 mainProgram = "rmount";
48 };
49}