2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-02 19:14:14 +00:00
nixpkgs/pkgs/development/web/shopify-themekit/default.nix
Fabián Heredia Montiel ff323ed355 treewide: vendorSha256 → vendorHash
via: `find pkgs/ -type f -exec sed -i 's/vendorSha256 = "sha256/vendorHash = "sha256/' {};`
2023-09-13 01:03:44 -06:00

30 lines
689 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "shopify-themekit";
version = "1.3.1";
src = fetchFromGitHub {
owner = "Shopify";
repo = "themekit";
rev = "v${version}";
sha256 = "sha256-HtgA+R6THZ49WYtGlHS1EzekjuuGgPe657Y6ewraD4o=";
};
vendorHash = "sha256-8QpkYj0fQb4plzvk6yCrZho8rq9VBiLft/EO3cczciI=";
ldflags = [ "-s" "-w" ];
postInstall = ''
# Keep `theme` only
rm -f $out/bin/{cmd,tkrelease}
'';
meta = with lib; {
description = "A command line tool for shopify themes";
homepage = "https://shopify.github.io/themekit/";
license = licenses.mit;
maintainers = with maintainers; [ _1000101 ];
};
}