Use the Go/Cobra version of zet
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
e80fbdeed3
commit
a2e7a0f422
3 changed files with 15 additions and 14 deletions
|
@ -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
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue