2021-01-15 22:18:51 +00:00
|
|
|
{lib, stdenv, fetchFromGitHub}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bashmount";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "4.3.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jamielinux";
|
|
|
|
repo = "bashmount";
|
|
|
|
rev = version;
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "1irw47s6i1qwxd20cymzlfw5sv579cw877l27j3p66qfhgadwxrl";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/jamielinux/bashmount";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Menu-driven bash script for the management of removable media with udisks";
|
2024-02-07 01:22:34 +00:00
|
|
|
mainProgram = "bashmount";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.koral ];
|
2024-05-15 15:35:15 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|