nixpkgs/pkgs/applications/science/logic/picosat/default.nix

32 lines
823 B
Nix
Raw Normal View History

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "picosat-${version}";
2016-04-02 16:43:32 +00:00
version = "965";
src = fetchurl {
url = "http://fmv.jku.at/picosat/${name}.tar.gz";
2016-04-02 16:43:32 +00:00
sha256 = "0m578rpa5rdn08d10kr4lbsdwp4402hpavrz6n7n53xs517rn5hm";
};
configurePhase = "./configure.sh --shared --trace";
installPhase = ''
mkdir -p $out/bin $out/lib $out/include/picosat
cp picomus picomcs picosat picogcnf "$out"/bin
cp libpicosat.a "$out"/lib
cp libpicosat.so "$out"/lib
cp picosat.h "$out"/include/picosat
'';
meta = {
description = "SAT solver with proof and core support";
homepage = http://fmv.jku.at/picosat/;
license = stdenv.lib.licenses.mit;
platforms = stdenv.lib.platforms.unix;
maintainers = with stdenv.lib.maintainers; [ roconnor thoughtpolice ];
};
}