mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +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
70 lines
1.7 KiB
Nix
70 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
picosat,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "aiger";
|
|
version = "1.9.9";
|
|
|
|
src = fetchurl {
|
|
url = "https://fmv.jku.at/aiger/${pname}-${version}.tar.gz";
|
|
sha256 = "1ish0dw0nf9gyghxsdhpy1jjiy5wp54c993swp85xp7m6vdx6l0y";
|
|
};
|
|
|
|
patches = [
|
|
# Fix implicit declaration of `isatty`, which is an error with newer versions of clang.
|
|
./fix-missing-header.patch
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
configurePhase = ''
|
|
# Set up picosat, so we can build 'aigbmc'
|
|
mkdir ../picosat
|
|
ln -s ${picosat}/include/picosat/picosat.h ../picosat/picosat.h
|
|
ln -s ${picosat}/lib/picosat.o ../picosat/picosat.o
|
|
ln -s ${picosat}/share/picosat.version ../picosat/VERSION
|
|
./configure.sh
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin $dev/include $lib/lib
|
|
|
|
# Do the installation manually, as the Makefile has odd
|
|
# cyrillic characters, and this is easier than adding
|
|
# a whole .patch file.
|
|
BINS=( \
|
|
aigand aigdd aigflip aigfuzz aiginfo aigjoin \
|
|
aigmiter aigmove aignm aigor aigreset aigsim \
|
|
aigsplit aigstrip aigtoaig aigtoblif aigtocnf \
|
|
aigtodot aigtosmv aigunconstraint aigunroll \
|
|
andtoaig bliftoaig smvtoaig soltostim wrapstim \
|
|
aigbmc aigdep
|
|
)
|
|
|
|
for x in ''${BINS[*]}; do
|
|
install -m 755 -s $x $out/bin/$x
|
|
done
|
|
|
|
cp -v aiger.o $lib/lib
|
|
cp -v aiger.h $dev/include
|
|
'';
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
"lib"
|
|
];
|
|
|
|
meta = {
|
|
description = "And-Inverter Graph (AIG) utilities";
|
|
homepage = "https://fmv.jku.at/aiger/";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ thoughtpolice ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|