nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 buildNpmPackage,
3 fetchFromGitHub,
4 lib,
5}:
6
7buildNpmPackage (finalAttrs: {
8 pname = "taskbook";
9 version = "0.3.0";
10
11 src = fetchFromGitHub {
12 owner = "klaudiosinani";
13 repo = "taskbook";
14 tag = "v${finalAttrs.version}";
15 hash = "sha256-LL9v7uRYbthK0riN6DKannABlhNWaG880Yp8egmwBJ4=";
16 };
17
18 dontNpmBuild = true;
19 dontNpmPrune = true;
20
21 npmDepsHash = "sha256-yri0sDDqek3HwLjPE0C43VRfemi5NCDLSZ3FJ8bwmdg=";
22
23 postPatch = ''
24 cp ${./package-lock.json} package-lock.json
25 '';
26
27 meta = {
28 description = "Tasks, boards & notes for the command-line habitat";
29 homepage = "https://github.com/klaudiosinani/taskbook";
30 license = lib.licenses.mit;
31 maintainers = with lib.maintainers; [ skohtv ];
32 mainProgram = "tb";
33 };
34})