summary refs log tree commit diff
path: root/pkgs/tools/misc/bashcards
diff options
context:
space:
mode:
authorRobert Pearce <me@robertwpearce.com>2020-05-09 10:21:35 -0400
committerRobert Pearce <me@robertwpearce.com>2020-05-19 20:29:37 -0400
commitcc2e800a722e53b34f464dce80ffff76e397cbfa (patch)
treedfac73e9d591e322912d6b247f5b7b96e9775d4f /pkgs/tools/misc/bashcards
parent88c8f0d54007e8e58823fcb0a2f0b6e4462b020f (diff)
downloadnixpkgs-cc2e800a722e53b34f464dce80ffff76e397cbfa.tar
nixpkgs-cc2e800a722e53b34f464dce80ffff76e397cbfa.tar.gz
nixpkgs-cc2e800a722e53b34f464dce80ffff76e397cbfa.tar.bz2
nixpkgs-cc2e800a722e53b34f464dce80ffff76e397cbfa.tar.lz
nixpkgs-cc2e800a722e53b34f464dce80ffff76e397cbfa.tar.xz
nixpkgs-cc2e800a722e53b34f464dce80ffff76e397cbfa.tar.zst
nixpkgs-cc2e800a722e53b34f464dce80ffff76e397cbfa.zip
bashcards: init at v0.1.2
Adds bashcards, a CLI tool to practice flashcards.
Diffstat (limited to 'pkgs/tools/misc/bashcards')
-rw-r--r--pkgs/tools/misc/bashcards/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/tools/misc/bashcards/default.nix b/pkgs/tools/misc/bashcards/default.nix
new file mode 100644
index 00000000000..ecaabb43c14
--- /dev/null
+++ b/pkgs/tools/misc/bashcards/default.nix
@@ -0,0 +1,30 @@
+{ stdenv
+, fetchFromGitHub
+}:
+
+stdenv.mkDerivation rec {
+  pname = "bashcards";
+  version = "0.1.2";
+
+  src = fetchFromGitHub {
+    owner = "rpearce";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "1zbijbcm9lrqwiax37li0jjqcaxf469wh5d423frain56z1qknxl";
+  };
+
+  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;
+  };
+}