11 stdenv.mkDerivation (finalAttrs: {
12 pname = "gitmoji-cli";
15 src = fetchFromGitHub {
16 owner = "carloscuesta";
18 rev = "v${finalAttrs.version}";
19 hash = "sha256-cIc0AaP1AwhoVJLnonC9qvDWNZW4L6/jsQ3Q6z5VXI0=";
22 offlineCache = fetchYarnDeps {
23 yarnLock = "${finalAttrs.src}/yarn.lock";
24 hash = "sha256-HXMRCTiUti/GZ1dzd+XbFOao3+QLC1t7H0TT9MS5lz4=";
37 export HOME=$(mktemp -d)
38 yarn config --offline set yarn-offline-mirror $offlineCache
39 fixup-yarn-lock yarn.lock
40 yarn --offline --frozen-lockfile --ignore-platform --ignore-scripts --no-progress --non-interactive install
41 patchShebangs node_modules
57 yarn --offline --production install
59 mkdir -p "$out/lib/node_modules/gitmoji-cli"
60 cp -r lib node_modules "$out/lib/node_modules/gitmoji-cli"
62 makeWrapper "${nodejs}/bin/node" "$out/bin/gitmoji" \
63 --add-flags "$out/lib/node_modules/gitmoji-cli/lib/cli.js"
69 description = "Gitmoji client for using emojis on commit messages";
70 homepage = "https://github.com/carloscuesta/gitmoji-cli";
71 license = lib.licenses.mit;
72 mainProgram = "gitmoji";
73 maintainers = with lib.maintainers; [ nequissimus ];