aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--default.nix3
-rw-r--r--pkgs/deck/default.nix40
2 files changed, 41 insertions, 2 deletions
diff --git a/default.nix b/default.nix
index b6474fd..fadb97d 100644
--- a/default.nix
+++ b/default.nix
@@ -16,9 +16,8 @@
modules = import ./modules; # NixOS modules
overlays = import ./overlays; # nixpkgs overlays
- example-package = pkgs.callPackage ./pkgs/example-package { };
-
claude-code = pkgs.callPackage ./pkgs/claude-code { };
+ deck = pkgs.callPackage ./pkgs/deck { };
hgrep = pkgs.callPackage ./pkgs/hgrep { };
source-han-code-jp = pkgs.callPackage ./pkgs/source-han-code-jp { };
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";
+ };
+}