2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2020-12-27 17:40:08 +00:00
|
|
|
|
2017-04-16 10:02:25 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "clac";
|
2020-12-27 17:40:08 +00:00
|
|
|
version = "0.3.3";
|
2017-04-16 10:02:25 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "soveran";
|
|
|
|
repo = "clac";
|
2020-12-27 17:40:08 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "rsag8MWl/udwXC0Gj864fAuQ6ts1gzrN2N/zelazqjE=";
|
2017-04-16 10:02:25 +00:00
|
|
|
};
|
|
|
|
|
2019-09-26 08:16:23 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2017-04-16 10:02:25 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p "$out/share/doc/${pname}"
|
|
|
|
cp README* LICENSE "$out/share/doc/${pname}"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-04-16 10:02:25 +00:00
|
|
|
description = "Interactive stack-based calculator";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/soveran/clac";
|
2020-12-27 17:40:08 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
platforms = platforms.unix;
|
2017-04-16 10:02:25 +00:00
|
|
|
};
|
|
|
|
}
|