1 { stdenv, lib, bundlerEnv, bundlerUpdateScript, makeWrapper, ruby }:
10 stdenv.mkDerivation rec {
11 pname = "shopify-cli";
12 version = (import ./gemset.nix).shopify-cli.version;
14 nativeBuildInputs = [ makeWrapper ];
20 makeWrapper ${rubyEnv}/bin/shopify $out/bin/shopify
21 wrapProgram $out/bin/shopify \
22 --prefix PATH : ${lib.makeBinPath [ ruby ]}
25 passthru.updateScript = bundlerUpdateScript "shopify-cli";
28 description = "CLI which helps you build against the Shopify platform faster";
29 homepage = "https://github.com/Shopify/shopify-cli";
30 license = licenses.mit;
31 maintainers = with maintainers; [ onny ];
32 mainProgram = "shopify";
33 platforms = ruby.meta.platforms;