13 src = fetchFromGitHub {
17 hash = "sha256-aoRfZ9SJazz0ir1fyHypn3aYqK9DJOLLVPMuFcOm/20=";
20 offlineCache = fetchYarnDeps {
21 yarnLock = src + "/yarn.lock";
22 hash = "sha256-HsWsRIONRNY9akZ2LXlWcPhH6N5qCKnesaDX1gQp+NU=";
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 = licenses.isc;
48 changelog = "https://github.com/fsouza/prettierd/blob/${src.rev}/CHANGELOG.md";
49 platforms = with platforms; linux ++ darwin;
50 maintainers = with maintainers; [ NotAShelf n3oney ];