-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
37 lines (31 loc) · 820 Bytes
/
default.nix
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
{
mkYarnPackage,
fetchYarnDeps,
makeWrapper,
nodejs,
lib,
}:
mkYarnPackage rec {
pname = "gist-musicbox";
version = "0.1.0";
src = ./.;
offlineCache = fetchYarnDeps {
yarnLock = src + "/yarn.lock";
hash = "sha256-JQhSy4Eu545urGpJDsv+qQM/MRU/DILBJZrrvTkgoy8=";
};
nativeBuildInputs = [makeWrapper];
buildPhase = ''
yarn run build
'';
postInstall = ''
makeWrapper ${lib.getExe nodejs} "$out/bin/gist-musicbox" \
--add-flags "$out/libexec/gist-musicbox/deps/gist-musicbox/dist/index.js"
'';
meta = with lib; {
description = "Updates a given GitHub Gist with your music statistics";
homepage = "https://github.com/bddvlpr/gist-musicbox";
license = licenses.bsd3;
maintainers = with maintainers; [bddvlpr];
mainProgram = "gist-musicbox";
};
}