mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-25 14:24:40 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
66 lines
1.6 KiB
Nix
66 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
drat-trim,
|
|
p7zip,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "kissat";
|
|
version = "4.0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "arminbiere";
|
|
repo = "kissat";
|
|
rev = "rel-${version}";
|
|
sha256 = "sha256-+y9TlSEgnMTtRT9F6OBSle9OqGfljChcHOFJ5lgwjyk=";
|
|
};
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
"lib"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
drat-trim
|
|
p7zip
|
|
];
|
|
doCheck = true;
|
|
|
|
# 'make test' assumes that /etc/passwd is not writable.
|
|
patches = [ ./writable-passwd-is-ok.patch ];
|
|
|
|
# the configure script is not generated by autotools and does not accept the
|
|
# arguments that the default configurePhase passes like --prefix and --libdir
|
|
dontAddPrefix = true;
|
|
setOutputFlags = false;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm0755 build/kissat "$out/bin/kissat"
|
|
install -Dm0644 src/kissat.h "$dev/include/kissat.h"
|
|
install -Dm0644 build/libkissat.a "$lib/lib/libkissat.a"
|
|
mkdir -p "$out/share/doc/kissat/"
|
|
install -Dm0644 {LICEN?E,README*,VERSION} "$out/share/doc/kissat/"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "'keep it simple and clean bare metal SAT solver' written in C";
|
|
mainProgram = "kissat";
|
|
longDescription = ''
|
|
Kissat is a "keep it simple and clean bare metal SAT solver" written in C.
|
|
It is a port of CaDiCaL back to C with improved data structures,
|
|
better scheduling of inprocessing and optimized algorithms and implementation.
|
|
'';
|
|
maintainers = with maintainers; [ shnarazk ];
|
|
platforms = platforms.unix;
|
|
license = licenses.mit;
|
|
homepage = "https://fmv.jku.at/kissat";
|
|
};
|
|
}
|