2019-04-25 16:14:31 +00:00
|
|
|
{ stdenv, nmap, jq, cifs-utils, sshfs, fetchFromGitHub, makeWrapper }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
pname = "rmount";
|
2019-10-30 21:40:12 +00:00
|
|
|
version = "1.1.0";
|
2019-04-25 16:14:31 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
src = fetchFromGitHub {
|
2019-04-25 16:14:31 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
owner = "Luis-Hebendanz";
|
|
|
|
repo = "rmount";
|
2019-10-30 21:40:12 +00:00
|
|
|
sha256 = "0j1ayncw1nnmgna7vyx44vwinh4ah1b0l5y8agc7i4s8clbvy3h0";
|
2019-04-25 16:14:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/Luis-Hebendanz/rmount";
|
2019-04-25 16:14:31 +00:00
|
|
|
description = "Remote mount utility which parses a json file";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.luis ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|