blob: 98972bd755403529110b5c0e5efca075219f3ebd (
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
|
{
lib,
buildNpmPackage,
fetchFromGitHub,
electron_36 # IDK when to update this, so whatever
}:
let electron = electron_36;
in
buildNpmPackage rec {
pname = "kccacheproxy";
version = "2.8.1";
src = fetchFromGitHub {
owner = "Tibowl";
repo = "KCCacheProxy";
tag = "v${version}";
hash = "sha256-oU/WlSakPitjfQZ8DPsuyAMVi1NoTXF9aG85DCP6mws=";
};
npmDepsHash = "sha256-Amm6HyAoJWTHAzih/87+HDcERl9pnFlrNcwLkGfmnGA=";
dontNpmBuild = true;
# broken symlinks in node_modules/.bin, we don't care
dontCheckForBrokenSymlinks = true;
env.ELECTRON_SKIP_BINARY_DOWNLOAD = "1";
postInstall = ''
makeWrapper ${electron}/bin/electron $out/bin/${pname} --add-flags $out/lib/node_modules/${pname}
'';
meta = {
description = "Local caching proxy for KanColle";
homepage = "https://github.com/Tibowl/KCCacheProxy";
# Repo doesn't specify license so I'm lying through my teeth
license = lib.licenses.publicDomain;
maintainers = [];
};
}
|