mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
2dfb657b94
Signed-off-by: Austin Seipp <aseipp@pobox.com>
34 lines
824 B
Nix
34 lines
824 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "picosat-${version}";
|
|
version = "960";
|
|
|
|
src = fetchurl {
|
|
url = "http://fmv.jku.at/picosat/${name}.tar.gz";
|
|
sha256 = "05z8cfjk84mkna5ryqlq2jiksjifg3jhlgbijaq36sbn0i51iczd";
|
|
};
|
|
|
|
dontAddPrefix = true;
|
|
configureFlags = "--shared";
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin $out/lib $out/include/picosat
|
|
cp picomus "$out"/bin
|
|
cp picosat "$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 ];
|
|
};
|
|
}
|