blob: 45063b12560ca8d6236223214256a3754a7e4613 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
{
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 = [];
};
}
|