uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
30
pkgs/applications/science/logic/z3/tptp.nix
Normal file
30
pkgs/applications/science/logic/z3/tptp.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{lib, stdenv, z3, cmake}:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "z3-tptp";
|
||||
version = z3.version;
|
||||
|
||||
src = z3.src;
|
||||
|
||||
sourceRoot = "source/examples/tptp";
|
||||
|
||||
nativeBuildInputs = [cmake];
|
||||
buildInputs = [z3];
|
||||
|
||||
preConfigure = ''
|
||||
echo 'set(Z3_LIBRARIES "-lz3")' >> CMakeLists.new
|
||||
cat CMakeLists.txt | grep -E 'add_executable|project|link_libraries' >> CMakeLists.new
|
||||
mv CMakeLists.new CMakeLists.txt
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out/bin"
|
||||
cp "z3_tptp5" "$out/bin/"
|
||||
ln -s "z3_tptp5" "$out/bin/z3-tptp"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
inherit (z3.meta) license homepage platforms;
|
||||
description = "TPTP wrapper for Z3 prover";
|
||||
maintainers = [lib.maintainers.raskin];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue