feat: nix nushellcompletions
ci/woodpecker/push/woodpecker Pipeline was successful Details

Signed-off-by: jolheiser <john.olheiser@gmail.com>
jolheiser 2023-12-22 13:43:40 -06:00
parent 01944e1a3a
commit 4e1852bdbd
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
1 changed files with 8 additions and 1 deletions

View File

@ -8,7 +8,7 @@
nixpkgs, nixpkgs,
}: let }: let
pkgs = nixpkgs.legacyPackages.x86_64-linux; pkgs = nixpkgs.legacyPackages.x86_64-linux;
tmpl = pkgs.buildGoModule { tmpl = pkgs.buildGoModule rec {
pname = "tmpl"; pname = "tmpl";
version = "0.4.0"; version = "0.4.0";
@ -16,6 +16,13 @@
vendorHash = "sha256-QNwzHC4fHLAhshOplKmMjRYa9sHNjBLdfBgANbs/iKk="; vendorHash = "sha256-QNwzHC4fHLAhshOplKmMjRYa9sHNjBLdfBgANbs/iKk=";
ldflags = ["-s" "-w" "-X=go.jolheiser.com/tmpl/cmd.Version=${version}"];
postInstall = ''
mkdir -p $out/share
cp -vr ./contrib/tmpl-completions.nu $out/share/tmpl-completions.nu
'';
meta = with pkgs.lib; { meta = with pkgs.lib; {
description = ""; description = "";
homepage = "https://git.jojodev.com/jolheiser/tmpl"; homepage = "https://git.jojodev.com/jolheiser/tmpl";