diff options
| author | Tom Harley | 2020-12-06 22:32:26 +0000 |
|---|---|---|
| committer | Tom Harley | 2020-12-06 22:32:26 +0000 |
| commit | 911a3d771c0fdae11c4943078ae16a9059fcb327 (patch) | |
| tree | 7345d650f70b2450f2a24d66c46b7c1be5ffb74b | |
| parent | Make repo name more general (diff) | |
| download | magpkgs-911a3d771c0fdae11c4943078ae16a9059fcb327.tar.gz magpkgs-911a3d771c0fdae11c4943078ae16a9059fcb327.zip | |
Fix conjure-minion.nix
conjure-minion.nix, the version of conjure that currently works, was made unbuildable because of the custom makeOverriable implementation. I’ve reverted to using the nixpkgs implementation for now, but would like to make a functional version myself at some point.
| -rw-r--r-- | conjure/solvers.nix | 6 | ||||
| -rw-r--r-- | default.nix | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/conjure/solvers.nix b/conjure/solvers.nix index fd576a7..63f22b5 100644 --- a/conjure/solvers.nix +++ b/conjure/solvers.nix @@ -4,6 +4,10 @@ , unzip , callPackage +, zlib +, gmp +, gmpxx + , savilerow , ... @@ -57,7 +61,7 @@ let })).override { minion = minion-2; }; }); -in with pkgs; addSavileRow (obj [ +in addSavileRow (obj [ { pname = "bc_minisat_all_release"; libs = [ zlib ]; } { pname = "fzn-chuffed"; libs = [ stdenv.cc.cc ]; dontStrip = true; } { pname = "fzn-gecode"; libs = [ stdenv.cc.cc ]; dontStrip = true; } diff --git a/default.nix b/default.nix index 6d01d6b..b11c717 100644 --- a/default.nix +++ b/default.nix @@ -5,7 +5,7 @@ let nixpkgs = import <nixpkgs> {}; in let magpkgs = rec { - callPackage = path: args: import path (nixpkgs // magpkgs // args); + callPackage = callPackageWith (nixpkgs // magpkgs); minion = callPackage ./minion {}; savilerow = callPackage ./savilerow {}; |
