mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nix: rename custom -> packages
This commit is contained in:
parent
754882bf0d
commit
afc2eea47a
24 changed files with 1 additions and 1 deletions
44
nix/packages/why3.nix
Normal file
44
nix/packages/why3.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
symlinkJoin,
|
||||
makeWrapper,
|
||||
why3,
|
||||
cvc4,
|
||||
z3_4_12,
|
||||
|
||||
fetchFromGitHub,
|
||||
system,
|
||||
}:
|
||||
let
|
||||
provers = [
|
||||
alt-ergo
|
||||
cvc4
|
||||
z3_4_12
|
||||
];
|
||||
|
||||
inherit
|
||||
(import
|
||||
(fetchFromGitHub {
|
||||
owner = "NixOS";
|
||||
repo = "nixpkgs";
|
||||
rev = "1b95daa381fa4a0963217a5d386433c20008208a";
|
||||
hash = "sha256-vwEtkxIEQjymeTk89Ty1MGfRVSWL1/3j1wt5xB5ua88=";
|
||||
})
|
||||
{
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
}
|
||||
)
|
||||
alt-ergo
|
||||
;
|
||||
in
|
||||
symlinkJoin {
|
||||
name = "why3";
|
||||
# Generate configuration in the store, and wrap why3 with the corresponding option
|
||||
paths = [ (why3.override { version = "1.6.0"; }) ];
|
||||
buildInputs = provers;
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
postBuild = ''
|
||||
$out/bin/why3 config detect --config=$out/why3.conf
|
||||
wrapProgram $out/bin/why3 --add-flags "--config=$out/why3.conf"
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue