nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildGoModule, fetchFromGitHub }:
2
3buildGoModule rec {
4 pname = "shopify-themekit";
5 version = "1.3.1";
6
7 src = fetchFromGitHub {
8 owner = "Shopify";
9 repo = "themekit";
10 rev = "v${version}";
11 sha256 = "sha256-HtgA+R6THZ49WYtGlHS1EzekjuuGgPe657Y6ewraD4o=";
12 };
13
14 vendorSha256 = "sha256-8QpkYj0fQb4plzvk6yCrZho8rq9VBiLft/EO3cczciI=";
15
16 ldflags = [ "-s" "-w" ];
17
18 postInstall = ''
19 # Keep `theme` only
20 rm -f $out/bin/{cmd,tkrelease}
21 '';
22
23 meta = with lib; {
24 description = "A command line tool for shopify themes";
25 homepage = "https://shopify.github.io/themekit/";
26 license = licenses.mit;
27 maintainers = with maintainers; [ _1000101 ];
28 };
29}