nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 nix-update-script,
6}:
7
8stdenv.mkDerivation (finalAttrs: {
9 pname = "clac";
10 version = "0.3.4";
11
12 src = fetchFromGitHub {
13 owner = "soveran";
14 repo = "clac";
15 tag = finalAttrs.version;
16 hash = "sha256-DcW35jKIZQqkNa5Y6am2e5/TAEg3Fo2n+fHG3nOpNzM=";
17 };
18
19 makeFlags = [ "PREFIX=$(out)" ];
20
21 postInstall = ''
22 mkdir -p "$out/share/doc/clac"
23 cp README* LICENSE "$out/share/doc/clac"
24 '';
25
26 passthru.updateScript = nix-update-script { };
27
28 meta = {
29 description = "Interactive stack-based calculator";
30 homepage = "https://github.com/soveran/clac";
31 changelog = "https://github.com/soveran/clac/releases/tag/${finalAttrs.version}";
32 license = lib.licenses.bsd2;
33 maintainers = with lib.maintainers; [
34 gepbird
35 raskin
36 ];
37 platforms = lib.platforms.unix;
38 mainProgram = "clac";
39 };
40})