2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-05-09 14:21:35 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bashcards";
|
2020-08-30 14:39:10 +00:00
|
|
|
version = "0.1.3";
|
2020-05-09 14:21:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rpearce";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-08-30 14:39:10 +00:00
|
|
|
sha256 = "1rpqrh0022sbrjvd55a0jvpdqhhka5msf8dsz6adbbmxy3xzgdid";
|
2020-05-09 14:21:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/share/man/man8
|
|
|
|
cp bashcards.8 $out/share/man/man8/
|
|
|
|
cp bashcards $out/bin/
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-05-09 14:21:35 +00:00
|
|
|
description = "Practice flashcards in bash";
|
|
|
|
homepage = "https://github.com/rpearce/bashcards/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ rpearce ];
|
|
|
|
platforms = platforms.all;
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "bashcards";
|
2020-05-09 14:21:35 +00:00
|
|
|
};
|
|
|
|
}
|