nixpkgs/pkgs/by-name/go/gowall/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1.0 KiB
Nix
Raw Normal View History

2024-08-05 06:05:36 +00:00
{
lib,
stdenv,
buildGoModule,
fetchFromGitHub,
installShellFiles,
}:
buildGoModule rec {
pname = "gowall";
2024-11-16 06:36:30 +00:00
version = "0.1.9";
2024-08-05 06:05:36 +00:00
src = fetchFromGitHub {
owner = "Achno";
repo = "gowall";
rev = "v${version}";
2024-11-16 06:36:30 +00:00
hash = "sha256-BBalJADhQ7D7p5PeafddkqQmHGhLsq1DlF1FUoazJGg=";
2024-08-05 06:05:36 +00:00
};
2024-08-17 11:08:49 +00:00
vendorHash = "sha256-H2Io1K2LEFmEPJYVcEaVAK2ieBrkV6u+uX82XOvNXj4=";
2024-08-05 06:05:36 +00:00
nativeBuildInputs = [ installShellFiles ];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd gowall \
--bash <($out/bin/gowall completion bash) \
--fish <($out/bin/gowall completion fish) \
--zsh <($out/bin/gowall completion zsh)
'';
meta = {
changelog = "https://github.com/Achno/gowall/releases/tag/v${version}";
description = "Tool to convert a Wallpaper's color scheme / palette";
homepage = "https://github.com/Achno/gowall";
license = lib.licenses.mit;
mainProgram = "gowall";
maintainers = with lib.maintainers; [
crem
emilytrau
];
};
}