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
12
flake.lock
generated
12
flake.lock
generated
|
@ -608,17 +608,17 @@
|
||||||
"zet": {
|
"zet": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1758576585,
|
"lastModified": 1758885848,
|
||||||
"narHash": "sha256-hWQE45nFaSN8agYMP8xt5kaUMfBXVj5k9zInZNs/xAI=",
|
"narHash": "sha256-2RqWy1s4O8eoPNfx6t6SCBGqb1Z5JIPFXQFpfvfbsVI=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "23505f6c31c7cc903e63621b52b5f92eea1facc5",
|
"rev": "06167c4b67bb6146819ff4bb0e4a1ecdde9882bf",
|
||||||
"revCount": 35,
|
"revCount": 51,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://code.oliverdavies.uk/opdavies/zet"
|
"url": "https://code.oliverdavies.uk/opdavies/cmd-zet"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://code.oliverdavies.uk/opdavies/zet"
|
"url": "https://code.oliverdavies.uk/opdavies/cmd-zet"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -90,7 +90,7 @@
|
||||||
|
|
||||||
zet = {
|
zet = {
|
||||||
flake = false;
|
flake = false;
|
||||||
url = "git+https://code.oliverdavies.uk/opdavies/zet";
|
url = "git+https://code.oliverdavies.uk/opdavies/cmd-zet";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -7,19 +7,20 @@ in
|
||||||
perSystem =
|
perSystem =
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
packages.${name} = pkgs.writeShellApplication {
|
packages.${name} = pkgs.buildGoModule {
|
||||||
inherit name;
|
inherit name;
|
||||||
|
|
||||||
bashOptions = [ "pipefail" ];
|
|
||||||
|
|
||||||
runtimeInputs = with pkgs; [
|
runtimeInputs = with pkgs; [
|
||||||
bashInteractive
|
|
||||||
coreutils
|
|
||||||
fzf
|
|
||||||
git
|
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