summary refs log tree commit diff
path: root/pkgs/applications/science/math/pcalc/default.nix
blob: 8e68e455ef18f26669b0a8399e76ca8bd540c138 (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, bison2, flex }:

with stdenv.lib;

stdenv.mkDerivation rec {
  name = "pcalc-${version}";
  version = "20120812";

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

  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;
  };
}