13 src = fetchFromGitHub {
17 hash = "sha256-3lvFZ5/p+1kPnHIR2PlQtCY3SVo1rs8IuBigLaabxAE=";
20 offlineCache = fetchYarnDeps {
21 yarnLock = src + "/yarn.lock";
22 hash = "sha256-Ti2b102pzUKB6Xy3LwZ7DlrnW0cRscgNLTUIAKz+6Us=";
25 packageJSON = ./package.json;
27 nativeBuildInputs = [ makeWrapper ];
31 export HOME=$(mktemp -d)
36 # prettierd needs to be wrapped with nodejs so that it can be executed
38 wrapProgram "$out/bin/prettierd" --prefix PATH : "${nodejs}/bin"
44 mainProgram = "prettierd";
45 description = "Prettier, as a daemon, for improved formatting speed";
46 homepage = "https://github.com/fsouza/prettierd";
47 license = lib.licenses.isc;
48 changelog = "https://github.com/fsouza/prettierd/blob/${src.rev}/CHANGELOG.md";
49 platforms = with lib.platforms; linux ++ darwin;
50 maintainers = with lib.maintainers; [