depot/third_party/nixpkgs/pkgs/tools/misc/bashcards/default.nix
Default email a5adf1ddd8 Project import generated by Copybara.
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
2021-01-15 23:18:51 +01:00

30 lines
672 B
Nix

{ lib, stdenv
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "bashcards";
version = "0.1.3";
src = fetchFromGitHub {
owner = "rpearce";
repo = pname;
rev = "v${version}";
sha256 = "1rpqrh0022sbrjvd55a0jvpdqhhka5msf8dsz6adbbmxy3xzgdid";
};
dontBuild = true;
installPhase = ''
mkdir -p $out/bin $out/share/man/man8
cp bashcards.8 $out/share/man/man8/
cp bashcards $out/bin/
'';
meta = with lib; {
description = "Practice flashcards in bash";
homepage = "https://github.com/rpearce/bashcards/";
license = licenses.bsd3;
maintainers = with maintainers; [ rpearce ];
platforms = platforms.all;
};
}