Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 58 lines 1.4 kB view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 installShellFiles, 6 makeWrapper, 7 dart-sass, 8 git, 9}: 10 11buildGoModule rec { 12 pname = "shopware-cli"; 13 version = "0.6.22"; 14 src = fetchFromGitHub { 15 repo = "shopware-cli"; 16 owner = "FriendsOfShopware"; 17 tag = version; 18 hash = "sha256-u5hFjDLGBXVvAp4WYWBb3HCzGDjkg9jj251LaV1zA8I="; 19 }; 20 21 nativeBuildInputs = [ 22 installShellFiles 23 makeWrapper 24 ]; 25 nativeCheckInputs = [ 26 git 27 dart-sass 28 ]; 29 30 vendorHash = "sha256-Ckn6+DzHPX+UG5YxYqvkdaio/elRQssbDSR+zAfxzdE="; 31 32 postInstall = '' 33 installShellCompletion --cmd shopware-cli \ 34 --bash <($out/bin/shopware-cli completion bash) \ 35 --zsh <($out/bin/shopware-cli completion zsh) \ 36 --fish <($out/bin/shopware-cli completion fish) 37 ''; 38 39 preFixup = '' 40 wrapProgram $out/bin/shopware-cli \ 41 --prefix PATH : ${lib.makeBinPath [ dart-sass ]} 42 ''; 43 44 ldflags = [ 45 "-s" 46 "-w" 47 "-X 'github.com/FriendsOfShopware/shopware-cli/cmd.version=${version}'" 48 ]; 49 50 meta = { 51 description = "Command line tool for Shopware 6"; 52 mainProgram = "shopware-cli"; 53 homepage = "https://github.com/FriendsOfShopware/shopware-cli"; 54 changelog = "https://github.com/FriendsOfShopware/shopware-cli/releases/tag/${version}"; 55 license = lib.licenses.mit; 56 maintainers = with lib.maintainers; [ shyim ]; 57 }; 58}