nixpkgs-suyu/pkgs/applications/science/logic/minisat/default.nix
Silvan Mosberger f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00

32 lines
770 B
Nix

{ stdenv, fetchurl, zlib }:
stdenv.mkDerivation rec {
name = "minisat-${version}";
version = "2.2.0";
src = fetchurl {
url = "http://minisat.se/downloads/${name}.tar.gz";
sha256 = "023qdnsb6i18yrrawlhckm47q8x0sl7chpvvw3gssfyw3j2pv5cj";
};
patches =
[ ./darwin.patch ]
++ stdenv.lib.optionals stdenv.cc.isClang [ ./clang.diff ];
buildInputs = [ zlib ];
preBuild = "cd simp";
makeFlags = [ "r" "MROOT=.." ];
installPhase = ''
mkdir -p $out/bin
cp minisat_release $out/bin/minisat
'';
meta = with stdenv.lib; {
description = "Compact and readable SAT solver";
maintainers = with maintainers; [ gebner raskin ];
platforms = platforms.unix;
license = licenses.mit;
homepage = http://minisat.se/;
};
}