12 stdenv.mkDerivation (finalAttrs: {
13 pname = "gitmoji-cli";
16 src = fetchFromGitHub {
17 owner = "carloscuesta";
19 rev = "v${finalAttrs.version}";
20 hash = "sha256-cIc0AaP1AwhoVJLnonC9qvDWNZW4L6/jsQ3Q6z5VXI0=";
23 offlineCache = fetchYarnDeps {
24 yarnLock = "${finalAttrs.src}/yarn.lock";
25 hash = "sha256-HXMRCTiUti/GZ1dzd+XbFOao3+QLC1t7H0TT9MS5lz4=";
38 export HOME=$(mktemp -d)
39 yarn config --offline set yarn-offline-mirror $offlineCache
40 fixup-yarn-lock yarn.lock
41 yarn --offline --frozen-lockfile --ignore-platform --ignore-scripts --no-progress --non-interactive install
42 patchShebangs node_modules
58 yarn --offline --production install
60 mkdir -p "$out/lib/node_modules/gitmoji-cli"
61 cp -r lib node_modules package.json "$out/lib/node_modules/gitmoji-cli"
63 makeWrapper "${nodejs}/bin/node" "$out/bin/gitmoji" \
64 --add-flags "$out/lib/node_modules/gitmoji-cli/lib/cli.js"
70 version = testers.testVersion {
71 package = finalAttrs.finalPackage;
76 description = "Gitmoji client for using emojis on commit messages";
77 homepage = "https://github.com/carloscuesta/gitmoji-cli";
78 license = lib.licenses.mit;
79 mainProgram = "gitmoji";
80 maintainers = with lib.maintainers; [ nequissimus ];