packages/void: init at 0.15.0+dev
This commit is contained in:
parent
2b9d593102
commit
047397747d
2 changed files with 55 additions and 0 deletions
|
@ -46,6 +46,8 @@
|
||||||
searxng = pkgs.callPackage ./web-apps/searxng { inherit pins; };
|
searxng = pkgs.callPackage ./web-apps/searxng { inherit pins; };
|
||||||
|
|
||||||
stevenblack-hosts = pkgs.callPackage ./data/stevenblack { inherit pins; };
|
stevenblack-hosts = pkgs.callPackage ./data/stevenblack { inherit pins; };
|
||||||
|
|
||||||
|
void = pkgs.callPackage ./tools/void { };
|
||||||
};
|
};
|
||||||
|
|
||||||
projectShells = {
|
projectShells = {
|
||||||
|
|
53
packages/tools/void/default.nix
Normal file
53
packages/tools/void/default.nix
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||||
|
|
||||||
|
let
|
||||||
|
version = "0.15.0+dev";
|
||||||
|
rev = "6461b31e4458dbce655fa1db6d266f666dbdfc4e";
|
||||||
|
in
|
||||||
|
buildGoModule rec {
|
||||||
|
|
||||||
|
inherit version;
|
||||||
|
pname = "void";
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Paisano CLI/TUI, customized for Private Void";
|
||||||
|
license = lib.licenses.unlicense;
|
||||||
|
homepage = "https://github.com/paisano-nix/tui";
|
||||||
|
};
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "paisano-nix";
|
||||||
|
repo = "tui";
|
||||||
|
inherit rev;
|
||||||
|
hash = "sha256-EFDb8jfv2SH57a6CfDo0WU4XjDihhgvVnKKw20yqksc=";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace flake/flake.go --replace-fail __std lib.catalog
|
||||||
|
substituteInPlace env/env.go --replace-fail '"metadata"' '"void-cli-metadata"'
|
||||||
|
'';
|
||||||
|
|
||||||
|
sourceRoot = "source/src";
|
||||||
|
|
||||||
|
vendorHash = "sha256-S1oPselqHRIPcqDSsvdIkCwu1siQGRDHOkxWtYwa+g4=";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mv $out/bin/paisano $out/bin/void
|
||||||
|
|
||||||
|
installShellCompletion --cmd void \
|
||||||
|
--bash <($out/bin/void _carapace bash) \
|
||||||
|
--fish <($out/bin/void _carapace fish) \
|
||||||
|
--zsh <($out/bin/void _carapace zsh)
|
||||||
|
'';
|
||||||
|
|
||||||
|
ldflags = [
|
||||||
|
"-s"
|
||||||
|
"-w"
|
||||||
|
"-X main.buildVersion=${version}"
|
||||||
|
"-X main.buildCommit=${rev}"
|
||||||
|
"-X main.argv0=void"
|
||||||
|
"-X main.project=Depot"
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in a new issue