pages/node-packages.nix

65 lines
1.9 KiB
Nix
Raw Permalink Normal View History

2024-12-15 20:13:13 +00:00
# This file has been generated by node2nix 1.11.1. Do not edit!
{nodeEnv, fetchurl, fetchgit, nix-gitignore, stdenv, lib, globalBuildInputs ? []}:
let
sources = {
"jquery-3.7.1" = {
name = "jquery";
packageName = "jquery";
version = "3.7.1";
src = fetchurl {
url = "https://registry.npmjs.org/jquery/-/jquery-3.7.1.tgz";
sha512 = "m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg==";
};
};
"jquery-mask-plugin-1.14.16" = {
name = "jquery-mask-plugin";
packageName = "jquery-mask-plugin";
version = "1.14.16";
src = fetchurl {
url = "https://registry.npmjs.org/jquery-mask-plugin/-/jquery-mask-plugin-1.14.16.tgz";
sha512 = "reywdHlYEkPbzWjTpcc1fk9XQ3PLvO5dzEAVqy8zI7NTF22tB1HbeU3iboZTLdkBEPaWAqeI2HtEjsGQ4roZKw==";
};
};
};
args = {
name = "millironx.github.io";
packageName = "millironx.github.io";
version = "0.0.0";
src = ./.;
dependencies = [
sources."jquery-3.7.1"
sources."jquery-mask-plugin-1.14.16"
];
buildInputs = globalBuildInputs;
meta = {
description = "My personal website";
homepage = "https://github.com/MillironX/millironx.github.io#readme";
license = "MIT";
};
production = true;
bypassCache = true;
reconstructLock = false;
};
in
{
args = args;
sources = sources;
tarball = nodeEnv.buildNodeSourceDist args;
package = nodeEnv.buildNodePackage args;
shell = nodeEnv.buildNodeShell args;
nodeDependencies = nodeEnv.buildNodeDependencies (lib.overrideExisting args {
src = stdenv.mkDerivation {
name = args.name + "-package-json";
src = nix-gitignore.gitignoreSourcePure [
"*"
"!package.json"
"!package-lock.json"
] args.src;
dontBuild = true;
installPhase = "mkdir -p $out; cp -r ./* $out;";
};
});
}