mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-24 15:01:56 +03:00
34 lines
552 B
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";
|
|
}
|