forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
33 lines
915 B
Nix
33 lines
915 B
Nix
{ lib, 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 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;
|
|
};
|
|
}
|