about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/science/math/pcalc/default.nix
blob: f372357fe7d8e9a8788f6dea276ea38848da07a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, fetchgit, bison, flex }:

with stdenv.lib;

stdenv.mkDerivation rec {
  pname = "pcalc";
  version = "20141224";

  src = fetchgit {
    url = "git://git.code.sf.net/p/pcalc/code";
    rev = "181d60d3c880da4344fef7138065943eb3b9255f";
    sha256 = "1hd5bh20j5xzvv6qa0fmzmv0h8sf38r7zgi7y0b6nk17pjq33v90";
  };

  makeFlags = [ "DESTDIR= BINDIR=$(out)/bin" ];
  buildInputs = [ bison 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;
  };
}