diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/science/math/pcalc/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/science/math/pcalc/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/science/math/pcalc/default.nix b/nixpkgs/pkgs/applications/science/math/pcalc/default.nix new file mode 100644 index 000000000000..3e7d9898a656 --- /dev/null +++ b/nixpkgs/pkgs/applications/science/math/pcalc/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchgit, bison2, flex }: + +with stdenv.lib; + +stdenv.mkDerivation rec { + name = "pcalc-${version}"; + version = "20141224"; + + src = fetchgit { + url = git://git.code.sf.net/p/pcalc/code; + rev = "181d60d3c880da4344fef7138065943eb3b9255f"; + sha256 = "1hd5bh20j5xzvv6qa0fmzmv0h8sf38r7zgi7y0b6nk17pjq33v90"; + }; + + makeFlags = [ "DESTDIR= BINDIR=$(out)/bin" ]; + buildInputs = [ bison2 flex ]; + + meta = { + homepage = http://pcalc.sourceforge.net/; + description = "Programmer's calculator"; + license = licenses.gpl2; + maintainers = with stdenv.lib.maintainers; [ ftrvxmtrx ]; + platforms = stdenv.lib.platforms.linux; + inherit version; + }; +} |