1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 19:45:54 +00:00
nixpkgs/pkgs/tools/filesystems/bashmount/default.nix
2020-09-24 18:38:27 +00:00

38 lines
928 B
Nix

{stdenv, fetchFromGitHub}:
stdenv.mkDerivation rec {
pname = "bashmount";
version = "4.3.2";
src = fetchFromGitHub {
owner = "jamielinux";
repo = "bashmount";
rev = version;
sha256 = "1irw47s6i1qwxd20cymzlfw5sv579cw877l27j3p66qfhgadwxrl";
};
installPhase = ''
mkdir -p $out/bin
cp bashmount $out/bin
mkdir -p $out/etc
cp bashmount.conf $out/etc
mkdir -p $out/share/man/man1
gzip -c -9 bashmount.1 > bashmount.1.gz
cp bashmount.1.gz $out/share/man/man1
mkdir -p $out/share/doc/bashmount
cp COPYING $out/share/doc/bashmount
cp NEWS $out/share/doc/bashmount
'';
meta = with stdenv.lib; {
homepage = "https://github.com/jamielinux/bashmount";
description = "A menu-driven bash script for the management of removable media with udisks";
maintainers = [ maintainers.koral ];
license = licenses.gpl2;
platforms = platforms.all;
};
}