aboutsummaryrefslogtreecommitdiffhomepage
path: root/pkgs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-07-23 22:49:50 +0900
committernsfisis <nsfisis@gmail.com>2025-07-23 22:49:50 +0900
commit7f22a726d47e940e2d7a7d742f91b4d1cbbb345d (patch)
tree07ca479e6f2d193fff8903c11fb76ea4cb0c247c /pkgs
parent55f573b9abd4c53bb5402eb0c538faca1c2ef56b (diff)
downloadnur-packages-7f22a726d47e940e2d7a7d742f91b4d1cbbb345d.tar.gz
nur-packages-7f22a726d47e940e2d7a7d742f91b4d1cbbb345d.tar.zst
nur-packages-7f22a726d47e940e2d7a7d742f91b4d1cbbb345d.zip
feat(deck): new
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/deck/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/deck/default.nix b/pkgs/deck/default.nix
new file mode 100644
index 0000000..3dc66ac
--- /dev/null
+++ b/pkgs/deck/default.nix
@@ -0,0 +1,40 @@
+{
+ lib,
+ buildGoModule,
+ fetchFromGitHub,
+ installShellFiles,
+}:
+
+buildGoModule rec {
+ pname = "deck";
+ version = "1.2.1";
+
+ src = fetchFromGitHub {
+ owner = "k1LoW";
+ repo = "deck";
+ rev = "v${version}";
+ hash = "sha256-dH19BREXUid4euMhK5D2bLFq5rONmZeyUrCQG+8uQf4=";
+ };
+ vendorHash = "sha256-eXW91aWBfVAkPSyqhrHIS4vLJwQqCSGNwr5BdY24KS4=";
+
+ nativeBuildInputs = [
+ installShellFiles
+ ];
+
+ postFixup = ''
+ installShellCompletion --cmd deck \
+ --bash <($out/bin/deck completion bash) \
+ --zsh <($out/bin/deck completion zsh) \
+ --fish <($out/bin/deck completion fish) \
+ ;
+ '';
+
+ doCheck = false;
+
+ meta = {
+ description = "A tool for creating deck using Markdown and Google Slides.";
+ homepage = "https://github.com/k1LoW/deck";
+ license = lib.licenses.mit;
+ mainProgram = "deck";
+ };
+}