2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, nmap, jq, cifs-utils, sshfs, fetchFromGitHub, makeWrapper }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
pname = "rmount";
|
|
|
|
version = "1.1.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
owner = "Luis-Hebendanz";
|
|
|
|
repo = "rmount";
|
|
|
|
sha256 = "0j1ayncw1nnmgna7vyx44vwinh4ah1b0l5y8agc7i4s8clbvy3h0";
|
|
|
|
};
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
wrapProgram $out/bin/rmount --prefix PATH : ${lib.makeBinPath [ nmap jq cifs-utils sshfs ]}
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|