nixpkgs/pkgs/applications/science/logic/ltl2ba/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

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

to pname
2019-08-15 13:41:18 +01:00

31 lines
806 B
Nix

{ fetchurl, stdenv }:
stdenv.mkDerivation rec {
pname = "ltl2ba";
version = "1.2";
src = fetchurl {
url = "http://www.lsv.ens-cachan.fr/~gastin/ltl2ba/${pname}-${version}.tar.gz";
sha256 = "0vzv5g7v87r41cvdafxi6yqnk7glzxrzgavy8213k59f6v11dzlx";
};
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";
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 ];
};
}