aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Harley2020-12-06 22:32:26 +0000
committerTom Harley2020-12-06 22:32:26 +0000
commit911a3d771c0fdae11c4943078ae16a9059fcb327 (patch)
tree7345d650f70b2450f2a24d66c46b7c1be5ffb74b
parentMake repo name more general (diff)
downloadmagpkgs-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.nix6
-rw-r--r--default.nix2
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 {};