{ lib, buildNpmPackage, fetchgit, git, electron, }: buildNpmPackage rec { pname = "poi"; version = "11.1.0"; src = fetchgit { url = "https://github.com/poooi/poi"; hash = "sha256-YwofAUDZ8kLTZyT2rJHvpGQsHFI/IDq7+Cw63D9Ehrg="; rev = "v${version}"; leaveDotGit = true; }; nativeBuildInputs = [ git ]; makeCacheWritable = true; npmDepsHash = "sha256-+kIf0V5Fwr7SLR54WOy24NYRqUv4q1qc0tOgZTGNGL4="; env.ELECTRON_SKIP_BINARY_DOWNLOAD = "1"; dontNpmBuild = true; buildPhase = '' export PATH=$PWD/node_modules/.bin:$PATH gulp build ''; postInstall = '' makeWrapper ${electron}/bin/electron $out/bin/${pname} \ --add-flags $out/lib/node_modules/${pname} ''; meta = { description = "Scalable KanColle browser and tool"; homepage = "https://poi.moe"; license = lib.licenses.mit; maintainers = []; }; }