Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / web / shopify-themekit / default.nix
blob5472f38fd7276bfdb908de15cefe25beda2c7e6f
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "shopify-themekit";
5   version = "1.3.2";
7   src = fetchFromGitHub {
8     owner = "Shopify";
9     repo = "themekit";
10     rev = "v${version}";
11     sha256 = "sha256-A/t6yQW2xRFZYuYRyNN/0v4zdivch3tiv65a7TdHm2c=";
12   };
14   vendorHash = "sha256-o928qjp7+/U1W03esYTwVEfQ4A3TmPnmgmh4oWpqJoo=";
16   ldflags = [ "-s" "-w" ];
18   postInstall = ''
19     # Keep `theme` only
20     rm -f $out/bin/{cmd,tkrelease}
21   '';
23   meta = with lib; {
24     description = "A command line tool for shopify themes";
25     mainProgram = "theme";
26     homepage = "https://shopify.github.io/themekit/";
27     license = licenses.mit;
28     maintainers = with maintainers; [ _1000101 ];
29   };