dream2nix/examples/dream2nix-packages-nodejs/prettier-node-modules/default.nix

34 lines
552 B
Nix

{
lib,
config,
dream2nix,
...
}: let
l = lib // builtins;
in {
imports = [
dream2nix.modules.drv-parts.nodejs-node-modules
];
mkDerivation = {
src = config.deps.fetchFromGitHub {
owner = "davhau";
repo = "prettier";
rev = "2.8.7-package-lock";
sha256 = "sha256-zo+WRV3VHja8/noC+iPydtbte93s5GGc3cYaQgNhlEY=";
};
};
deps = {nixpkgs, ...}: {
inherit
(nixpkgs)
fetchFromGitHub
mkShell
stdenv
;
};
name = l.mkForce "prettier";
version = l.mkForce "2.8.7";
}