depot/third_party/nixpkgs/pkgs/tools/filesystems/bashmount/default.nix
Default email 1ffc76754d Project import generated by Copybara.
GitOrigin-RevId: a5cc7d3197705f933d88e97c0c61849219ce76c1
2020-07-18 18:06:22 +02:00

37 lines
928 B
Nix

{stdenv, fetchFromGitHub}:
stdenv.mkDerivation rec {
pname = "bashmount";
version = "4.3.0";
src = fetchFromGitHub {
owner = "jamielinux";
repo = "bashmount";
rev = version;
sha256 = "1idjyl5dr8a72w3lg15qx03wgc5mj2ga2v2jkyb8v9gi5ahl03mn";
};
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;
};
}