summary refs log tree commit diff
path: root/pkgs/applications/science/logic/ltl2ba/default.nix
blob: cb0c308b12918308aecf375ab4280b528d4fb1fe (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
{ fetchurl, stdenv }:

stdenv.mkDerivation rec {
  name = "ltl2ba-${version}";
  version = "1.1";

  src = fetchurl {
    url    = "http://www.lsv.ens-cachan.fr/~gastin/ltl2ba/${name}.tar.gz";
    sha256 = "16z0gc7a9dkarwn0l6rvg5jdhw1q4qyn4501zlchy0zxqddz0sx6";
  };

  hardening_format = false;

  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";
    homepage    = "http://www.lsv.ens-cachan.fr/~gastin/ltl2ba";
    license     = stdenv.lib.licenses.gpl2Plus;
    platforms   = stdenv.lib.platforms.darwin ++ stdenv.lib.platforms.linux;
    maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
  };
}