generated from nix-community/nur-packages-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cowsay.nix
39 lines (32 loc) · 823 Bytes
/
cowsay.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
38
39
{ lib
, fetchFromGitHub
, npmlock2nix
}:
npmlock2nix.build rec {
pname = "cowsay";
version = "1.5.0";
src = fetchFromGitHub {
owner = "piuccio";
repo = "cowsay";
rev = "v${version}";
hash = "sha256-TZ3EQGzVptNqK3cNrkLnyP1FzBd81XaszVucEnmBy4Y=";
};
buildCommands = [ "npm run prepare" ];
installPhase = ''
mkdir -p $out/opt
cp -r . $out/opt/cowsay
mkdir -p $out/bin
ln -sr $out/opt/cowsay/cli.js $out/bin/cowsay
'';
node_modules_attrs = {
symlinkNodeModules = true;
packageJson = ./package.json;
packageLockJson = ./package-lock.json;
};
meta = with lib; {
description = "cowsay is a configurable talking cow";
homepage = "https://github.com/piuccio/cowsay";
license = with licenses; [ mit ];
maintainers = with maintainers; [ ];
};
}