blob: bb87966b339826ee97ab4f00cb645c229cadbf17 (
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
|
{
lib,
stdenv,
fetchFromGitHub,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "clac";
version = "0.3.5";
src = fetchFromGitHub {
owner = "soveran";
repo = "clac";
tag = finalAttrs.version;
hash = "sha256-o/KYsiQDRva2mercTz1dmdcuXWCv7x8fy4LvPgk9Qn4=";
};
makeFlags = [ "PREFIX=$(out)" ];
postInstall = ''
mkdir -p "$out/share/doc/clac"
cp README* LICENSE "$out/share/doc/clac"
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Interactive stack-based calculator";
homepage = "https://github.com/soveran/clac";
changelog = "https://github.com/soveran/clac/releases/tag/${finalAttrs.version}";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [
gepbird
raskin
];
platforms = lib.platforms.unix;
mainProgram = "clac";
};
})
|