mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-24 23:14:12 +03:00
0e9553062c
Also add an example package
36 lines
640 B
Nix
36 lines
640 B
Nix
{
|
|
lib,
|
|
config,
|
|
dream2nix,
|
|
...
|
|
}: {
|
|
imports = [
|
|
dream2nix.modules.dream2nix.nodejs-package-lock-v3
|
|
dream2nix.modules.dream2nix.nodejs-granular-v3
|
|
];
|
|
|
|
mkDerivation = {
|
|
src = config.deps.fetchFromGitHub {
|
|
owner = "DavHau";
|
|
repo = "cowsay";
|
|
rev = "package-lock-v3";
|
|
sha256 = "sha256-KuZkGWl5An78IFR5uT/2jVTXdm71oWB+p143svYVkqQ=";
|
|
};
|
|
};
|
|
|
|
deps = {nixpkgs, ...}: {
|
|
inherit
|
|
(nixpkgs)
|
|
fetchFromGitHub
|
|
stdenv
|
|
;
|
|
};
|
|
|
|
nodejs-package-lock-v3 = {
|
|
packageLockFile = "${config.mkDerivation.src}/package-lock.json";
|
|
};
|
|
|
|
name = "cowsay";
|
|
version = "1.5.0";
|
|
}
|