about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/science/logic/ltl2ba/default.nix
blob: 19ade58fbfaa17c8d6db874b53966295d779c127 (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
27
28
29
30
31
32
{ fetchurl, lib, stdenv }:

stdenv.mkDerivation rec {
  pname = "ltl2ba";
  version = "1.3";

  src = fetchurl {
    url    = "http://www.lsv.ens-cachan.fr/~gastin/ltl2ba/${pname}-${version}.tar.gz";
    sha256 = "1bz9gjpvby4mnvny0nmxgd81rim26mqlcnjlznnxxk99575pfa4i";
  };

  hardeningDisable = [ "format" ];

  preConfigure = ''
    substituteInPlace Makefile \
    --replace "CC=gcc" ""
  '';

  installPhase = ''
    mkdir -p $out/bin
    mv ltl2ba $out/bin
  '';

  meta = {
    description = "Fast translation from LTL formulae to Buchi automata";
    mainProgram = "ltl2ba";
    homepage    = "http://www.lsv.ens-cachan.fr/~gastin/ltl2ba";
    license     = lib.licenses.gpl2Plus;
    platforms   = lib.platforms.darwin ++ lib.platforms.linux;
    maintainers = [ lib.maintainers.thoughtpolice ];
  };
}