1
Fork 0

feat: included a license generator

This commit is contained in:
Matei Adriel 2020-06-14 14:15:48 +03:00
parent c3634cc73c
commit d413df8b60
6 changed files with 1139 additions and 829 deletions

View file

@ -10,6 +10,7 @@
"ksplashqml", "ksplashqml",
"ksplashsimple", "ksplashsimple",
"ksplashx", "ksplashx",
"mklicense",
"pnpm", "pnpm",
"rofi", "rofi",
"xmonad" "xmonad"

View file

@ -1,4 +1,4 @@
# This file has been generated by node2nix 1.7.0. Do not edit! # This file has been generated by node2nix 1.8.0. Do not edit!
{pkgs ? import <nixpkgs> { {pkgs ? import <nixpkgs> {
inherit system; inherit system;

View file

@ -57,7 +57,7 @@ let
# Recursively composes the dependencies of a package # Recursively composes the dependencies of a package
composePackage = { name, packageName, src, dependencies ? [], ... }@args: composePackage = { name, packageName, src, dependencies ? [], ... }@args:
'' builtins.addErrorContext "while evaluating node package '${packageName}'" ''
DIR=$(pwd) DIR=$(pwd)
cd $TMPDIR cd $TMPDIR
@ -363,7 +363,7 @@ let
npm ${forceOfflineFlag} --nodedir=${nodeSources} ${npmFlags} ${stdenv.lib.optionalString production "--production"} rebuild npm ${forceOfflineFlag} --nodedir=${nodeSources} ${npmFlags} ${stdenv.lib.optionalString production "--production"} rebuild
if [ "$dontNpmInstall" != "1" ] if [ "''${dontNpmInstall-}" != "1" ]
then then
# NPM tries to download packages even when they already exist if npm-shrinkwrap is used. # NPM tries to download packages even when they already exist if npm-shrinkwrap is used.
rm -f npm-shrinkwrap.json rm -f npm-shrinkwrap.json
@ -400,6 +400,8 @@ let
++ stdenv.lib.optional (stdenv.isDarwin) libtool ++ stdenv.lib.optional (stdenv.isDarwin) libtool
++ buildInputs; ++ buildInputs;
inherit nodejs;
inherit dontStrip; # Stripping may fail a build for some package deployments inherit dontStrip; # Stripping may fail a build for some package deployments
inherit dontNpmInstall preRebuild unpackPhase buildPhase; inherit dontNpmInstall preRebuild unpackPhase buildPhase;
@ -528,8 +530,8 @@ let
# Provide the dependencies in a development shell through the NODE_PATH environment variable # Provide the dependencies in a development shell through the NODE_PATH environment variable
inherit nodeDependencies; inherit nodeDependencies;
shellHook = stdenv.lib.optionalString (dependencies != []) '' shellHook = stdenv.lib.optionalString (dependencies != []) ''
export NODE_PATH=$nodeDependencies/lib/node_modules export NODE_PATH=${nodeDependencies}/lib/node_modules
export PATH="$nodeDependencies/bin:$PATH" export PATH="${nodeDependencies}/bin:$PATH"
''; '';
}; };
in in

View file

@ -1 +1 @@
["pnpm", "tsdx"] ["pnpm", "tsdx", "mklicense"]

File diff suppressed because it is too large Load diff

View file

@ -5,10 +5,10 @@
"homepage": "", "homepage": "",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "15f319a6b8149e4887d6c4a52f2c341231cbf528", "rev": "597f78e4acb3bfe8215fd55e97e8d5d1ca8b1565",
"sha256": "1hb3mp064xjrniww4q0gfvlxwky183wnr1kzmzd6kzy4c2i01gdl", "sha256": "1npim78p8hg59bci4vl1zg4h7pdxga6l91mr5syp2b1r3k62abyp",
"type": "tarball", "type": "tarball",
"url": "https://github.com/nix-community/NUR/archive/15f319a6b8149e4887d6c4a52f2c341231cbf528.tar.gz", "url": "https://github.com/nix-community/NUR/archive/597f78e4acb3bfe8215fd55e97e8d5d1ca8b1565.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"agnoster": { "agnoster": {
@ -89,10 +89,10 @@
"homepage": "https://github.com/NixOS/nixpkgs", "homepage": "https://github.com/NixOS/nixpkgs",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs-channels", "repo": "nixpkgs-channels",
"rev": "e7752db2fb6c5e05f1de2b275535dbde07d30090", "rev": "05a32d8e771dc39438835ba0e3141d68ad4e3068",
"sha256": "1lx2wdagigq5c7qp1fcy25ccpfvz5cl5x0b9rhnz1x409vn7icx1", "sha256": "0w8824m4f15km3mngji35qjs9sgfvfpl57b0dq6hch5gmhlal679",
"type": "tarball", "type": "tarball",
"url": "https://github.com/NixOS/nixpkgs-channels/archive/e7752db2fb6c5e05f1de2b275535dbde07d30090.tar.gz", "url": "https://github.com/NixOS/nixpkgs-channels/archive/05a32d8e771dc39438835ba0e3141d68ad4e3068.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
@ -101,10 +101,10 @@
"homepage": "https://github.com/NixOS/nixpkgs", "homepage": "https://github.com/NixOS/nixpkgs",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs-channels", "repo": "nixpkgs-channels",
"rev": "135073a87b7e2c631739f4ffa016e1859b1a425e", "rev": "467ce5a9f45aaf96110b41eb863a56866e1c2c3c",
"sha256": "0s5kgyi7764r4zm51zy4isyc4zgn4fajwqwnrgm7s1xbs6zickv5", "sha256": "0qz7wgi61pdb335n18xm8rfwddckwv0vg8n7fii5abrrx47vnqcj",
"type": "tarball", "type": "tarball",
"url": "https://github.com/nixos/nixpkgs-channels/archive/135073a87b7e2c631739f4ffa016e1859b1a425e.tar.gz", "url": "https://github.com/nixos/nixpkgs-channels/archive/467ce5a9f45aaf96110b41eb863a56866e1c2c3c.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"snack": { "snack": {