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
32
pkgs/applications/science/logic/why3/with-provers.nix
Normal file
32
pkgs/applications/science/logic/why3/with-provers.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ stdenv, makeWrapper, runCommand, symlinkJoin, why3 }:
|
||||
provers:
|
||||
let configAwkScript = runCommand "why3-conf.awk" { inherit provers; }
|
||||
''
|
||||
for p in $provers; do
|
||||
for b in $p/bin/*; do
|
||||
BASENAME=$(basename $b)
|
||||
echo "/^command =/{ gsub(\"$BASENAME\", \"$b\") }" >> $out
|
||||
done
|
||||
done
|
||||
echo '{ print }' >> $out
|
||||
'';
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
pname = "${why3.pname}-with-provers";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ why3 ] ++ provers;
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
buildPhase = ''
|
||||
mkdir -p $out/share/why3/
|
||||
why3 config detect -C $out/share/why3/why3.conf
|
||||
awk -i inplace -f ${configAwkScript} $out/share/why3/why3.conf
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
makeWrapper ${why3}/bin/why3 $out/bin/why3 --add-flags "--config $out/share/why3/why3.conf"
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue