nixpkgs/pkgs/development/web/shopify-themekit/default.nix

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

30 lines
691 B
Nix
Raw Normal View History

2022-05-28 03:27:26 +03:00
{ lib, buildGoModule, fetchFromGitHub }:
2020-04-21 17:30:07 +03:00
2022-05-28 03:27:26 +03:00
buildGoModule rec {
2020-04-21 17:30:07 +03:00
pname = "shopify-themekit";
2022-05-28 03:27:26 +03:00
version = "1.3.0";
2020-04-21 17:30:07 +03:00
src = fetchFromGitHub {
owner = "Shopify";
repo = "themekit";
rev = "v${version}";
2022-05-28 03:27:26 +03:00
sha256 = "sha256-7uUKyaLzeiioW0TsEu82lJU0DoM1suwVcmacY1X0SEM=";
2020-04-21 17:30:07 +03:00
};
2022-05-28 03:27:26 +03:00
vendorSha256 = "sha256-8QpkYj0fQb4plzvk6yCrZho8rq9VBiLft/EO3cczciI=";
ldflags = [ "-s" "-w" ];
postInstall = ''
# Keep `theme` only
rm -f $out/bin/{cmd,tkrelease}
'';
meta = with lib; {
2020-04-21 17:30:07 +03:00
description = "A command line tool for shopify themes";
homepage = "https://shopify.github.io/themekit/";
license = licenses.mit;
2020-07-29 13:57:20 +03:00
maintainers = with maintainers; [ _1000101 ];
2020-04-21 17:30:07 +03:00
};
}