mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-26 06:44:06 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
34 lines
944 B
Nix
34 lines
944 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";
|
|
};
|
|
|
|
nativeBuildInputs = [ 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 : ${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.qubasa ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "rmount";
|
|
};
|
|
}
|