Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions pkgs/by-name/go/gowall/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,37 @@
buildGoModule,
fetchFromGitHub,
installShellFiles,
nix-update-script,
writableTmpDirAsHomeHook,
}:

buildGoModule rec {
pname = "gowall";
version = "0.2.0";
version = "0.2.1";

src = fetchFromGitHub {
owner = "Achno";
repo = "gowall";
rev = "v${version}";
hash = "sha256-QKukWA8TB0FoNHu0Wyco55x4oBY+E33qdoT/SaXW6DE=";
hash = "sha256-fgO4AoyHR51zD86h75b06BXV0ONlFfHdBvxfJvcD7J8=";
};

vendorHash = "sha256-H2Io1K2LEFmEPJYVcEaVAK2ieBrkV6u+uX82XOvNXj4=";
vendorHash = "sha256-V/VkbJZIzy4KlEPtlTTqdUIPG6lKD+XidNM0NWpATbk=";

nativeBuildInputs = [ installShellFiles ];
nativeBuildInputs = [
installShellFiles
# using writableTmpDirAsHomeHook to prevent issues when creating config dir for shell completions
writableTmpDirAsHomeHook
];
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)
'';

passthru.updateScript = nix-update-script { };

meta = {
changelog = "https://github.com/Achno/gowall/releases/tag/v${version}";
description = "Tool to convert a Wallpaper's color scheme / palette";
Expand All @@ -36,6 +44,7 @@ buildGoModule rec {
maintainers = with lib.maintainers; [
crem
emilytrau
FKouhai
];
};
}