2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2020-12-27 17:40:08 +00:00
|
|
|
|
2017-04-16 11:02:25 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "clac";
|
2020-12-27 17:40:08 +00:00
|
|
|
version = "0.3.3";
|
2017-04-16 11:02:25 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "soveran";
|
|
|
|
repo = "clac";
|
2020-12-27 17:40:08 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "rsag8MWl/udwXC0Gj864fAuQ6ts1gzrN2N/zelazqjE=";
|
2017-04-16 11:02:25 +01:00
|
|
|
};
|
|
|
|
|
2019-09-26 09:16:23 +01:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2017-04-16 11:02:25 +01: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 11:02:25 +01:00
|
|
|
description = "Interactive stack-based calculator";
|
2020-04-01 02:11:51 +01: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 11:02:25 +01:00
|
|
|
};
|
|
|
|
}
|