Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
9,661 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
pkgs/applications/version-management/commitizen/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ pkgs, nodejs, stdenv, lib, ... }: | ||
|
||
let | ||
nodePackages = import ./node-composition.nix { | ||
inherit pkgs nodejs; | ||
inherit (stdenv.hostPlatform) system; | ||
}; | ||
in | ||
nodePackages.commitizen.override { | ||
meta = with lib; { | ||
description = "The commitizen command line utility"; | ||
homepage = "https://commitizen.github.io/cz-cli"; | ||
maintainers = with maintainers; [ freezeboy ]; | ||
license = licenses.mit; | ||
platforms = platforms.linux ++ platforms.darwin; | ||
}; | ||
} |
9 changes: 9 additions & 0 deletions
9
pkgs/applications/version-management/commitizen/generate-dependencies.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env nix-shell | ||
#! nix-shell -i bash -p nodePackages.node2nix | ||
|
||
node2nix \ | ||
--node-env node-env.nix \ | ||
--development \ | ||
--input package.json \ | ||
--output node-packages.nix \ | ||
--composition node-composition.nix |
17 changes: 17 additions & 0 deletions
17
pkgs/applications/version-management/commitizen/node-composition.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# This file has been generated by node2nix 1.8.0. Do not edit! | ||
|
||
{pkgs ? import <nixpkgs> { | ||
inherit system; | ||
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-12_x"}: | ||
|
||
let | ||
nodeEnv = import ./node-env.nix { | ||
inherit (pkgs) stdenv python2 utillinux runCommand writeTextFile; | ||
inherit nodejs; | ||
libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null; | ||
}; | ||
in | ||
import ./node-packages.nix { | ||
inherit (pkgs) fetchurl fetchgit; | ||
inherit nodeEnv; | ||
} |
Oops, something went wrong.