2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2020-12-29 15:07:52 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "clac";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.3.3-unstable-2021-09-06";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "soveran";
|
|
|
|
repo = "clac";
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = "beae8c4bc89912f4cd66bb875585fa471692cd54";
|
|
|
|
sha256 = "XaULDkFF9OZW7Hbh60wbGgvCJ6L+3gZNGQ9uQv3G0zU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
2024-09-19 14:19:46 +00:00
|
|
|
mkdir -p "$out/share/doc/clac"
|
|
|
|
cp README* LICENSE "$out/share/doc/clac"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Interactive stack-based calculator";
|
|
|
|
homepage = "https://github.com/soveran/clac";
|
2020-12-29 15:07:52 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
platforms = platforms.unix;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "clac";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|