summary refs log tree commit diff
path: root/pkgs/tools/filesystems/rmount/default.nix
blob: 72172ef5baa22c62cbd48c22a9104fa0f64c5347 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ stdenv, nmap, jq, cifs-utils, sshfs, fetchFromGitHub, makeWrapper }:

stdenv.mkDerivation rec {

  pname   = "rmount";
  version = "1.1.0";

  src = fetchFromGitHub {
    rev = "v${version}";
    owner = "Luis-Hebendanz";
    repo = "rmount";
    sha256 = "0j1ayncw1nnmgna7vyx44vwinh4ah1b0l5y8agc7i4s8clbvy3h0";
  };

  buildInputs = [ makeWrapper ];

  installPhase = ''
    install -D ${src}/rmount.man  $out/share/man/man1/rmount.1
    install -D ${src}/rmount.bash $out/bin/rmount
    install -D ${src}/config.json $out/share/config.json

    wrapProgram $out/bin/rmount --prefix PATH : ${stdenv.lib.makeBinPath [ nmap jq cifs-utils sshfs ]}
  '';

  meta = with stdenv.lib; {
    homepage = https://github.com/Luis-Hebendanz/rmount;
    description = "Remote mount utility which parses a json file";
    license = licenses.mit;
    maintainers = [ maintainers.luis ];
    platforms = platforms.linux;
  };
}