Use the Go/Cobra version of zet

Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
Oliver Davies 2025-09-29 20:26:46 +01:00
parent e80fbdeed3
commit a2e7a0f422
3 changed files with 15 additions and 14 deletions

View file

@ -7,19 +7,20 @@ in
perSystem =
{ pkgs, ... }:
{
packages.${name} = pkgs.writeShellApplication {
packages.${name} = pkgs.buildGoModule {
inherit name;
bashOptions = [ "pipefail" ];
runtimeInputs = with pkgs; [
bashInteractive
coreutils
fzf
git
];
text = builtins.readFile "${inputs.zet}/${name}";
src = inputs.zet;
vendorHash = "sha256-pprnK2JKmPuR3Q+F8+vMDEdowlb3oX4BOOzW8NGOqgs=";
postInstall = ''
mv $out/bin/cmd-zet $out/bin/zet
'';
};
};