diff options
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/tools/misc/bashcards/default.nix')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/tools/misc/bashcards/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/tools/misc/bashcards/default.nix b/infra/libkookie/nixpkgs/pkgs/tools/misc/bashcards/default.nix new file mode 100644 index 000000000000..3e91b9741c63 --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/tools/misc/bashcards/default.nix @@ -0,0 +1,30 @@ +{ 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 stdenv.lib; { + description = "Practice flashcards in bash"; + homepage = "https://github.com/rpearce/bashcards/"; + license = licenses.bsd3; + maintainers = with maintainers; [ rpearce ]; + platforms = platforms.all; + }; +} |