From 745e169bdea8db44f82b061e141df5a828297931 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Wed, 2 Feb 2022 12:38:57 +0800 Subject: [PATCH] butler: init at 15.21.0 It's not confirmed to be working though yet... I'm just packaging it for the sake of packaging it. XD --- pkgs/butler.nix | 26 ++++++++++++++++++++++++++ pkgs/default.nix | 1 + 2 files changed, 27 insertions(+) create mode 100644 pkgs/butler.nix diff --git a/pkgs/butler.nix b/pkgs/butler.nix new file mode 100644 index 00000000..c4c01391 --- /dev/null +++ b/pkgs/butler.nix @@ -0,0 +1,26 @@ +{ stdenv, lib, buildGoModule, fetchFromGitHub, brotli, p7zip }: + +buildGoModule rec { + pname = "butler"; + version = "15.21.0"; + + src = fetchFromGitHub { + owner = "itchio"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-vciSmXR3wI3KcnC+Uz36AgI/WUfztA05MJv1InuOjJM="; + }; + + vendorSha256 = "sha256-vdMu4Q/1Ami60JPPrdq5oFPc6TjmL9klZ6W+gBvfkx0="; + + buildInputs = [ brotli p7zip ]; + + # The tests requires the package itself to be installed and IDK how to do it. + doCheck = false; + + meta = with lib; { + description = "Command-line itch.io helper"; + homepage = "https://github.com/itchio/butler"; + license = licenses.mit; + }; +} diff --git a/pkgs/default.nix b/pkgs/default.nix index 90a5e2a7..87a94c20 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -30,6 +30,7 @@ let sha256 = "sha256-lgt69FhXANsP3VuENVThHiVk/tngYfWR+uiKe+ZEb6M="; }; }); + butler = callPackage ./butler.nix { }; devdocs-desktop = callPackage ./devdocs-desktop.nix { }; doggo = callPackage ./doggo.nix { }; gnome-search-provider-browser-tabs = callPackage ./gnome-search-provider-browser-tabs.nix { };