Skip to content
Closed
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
12 changes: 9 additions & 3 deletions pkgs/by-name/go/gowall/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,35 @@
buildGoModule,
fetchFromGitHub,
installShellFiles,
nix-update-script,
}:

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 ];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
export HOME=$TMPDIR
mkdir -p $HOME/.config

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 Down