1 { lib, stdenv, fetchFromGitHub
5 stdenv.mkDerivation rec {
9 src = fetchFromGitHub {
12 rev = "rel-${version}";
13 sha256 = "sha256-+y9TlSEgnMTtRT9F6OBSle9OqGfljChcHOFJ5lgwjyk=";
16 outputs = [ "out" "dev" "lib" ];
18 nativeCheckInputs = [ drat-trim p7zip ];
21 # 'make test' assumes that /etc/passwd is not writable.
22 patches = [ ./writable-passwd-is-ok.patch ];
24 # the configure script is not generated by autotools and does not accept the
25 # arguments that the default configurePhase passes like --prefix and --libdir
27 setOutputFlags = false;
32 install -Dm0755 build/kissat "$out/bin/kissat"
33 install -Dm0644 src/kissat.h "$dev/include/kissat.h"
34 install -Dm0644 build/libkissat.a "$lib/lib/libkissat.a"
35 mkdir -p "$out/share/doc/kissat/"
36 install -Dm0644 {LICEN?E,README*,VERSION} "$out/share/doc/kissat/"
42 description = "'keep it simple and clean bare metal SAT solver' written in C";
43 mainProgram = "kissat";
45 Kissat is a "keep it simple and clean bare metal SAT solver" written in C.
46 It is a port of CaDiCaL back to C with improved data structures,
47 better scheduling of inprocessing and optimized algorithms and implementation.
49 maintainers = with maintainers; [ shnarazk ];
50 platforms = platforms.unix;
51 license = licenses.mit;
52 homepage = "https://fmv.jku.at/kissat";