-
Hello, First of all, apologies for opening an issue, I don't know where else to ask it. I'm trying to put Here's the nix file I currently have: {
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
opam-nix.url = "github:tweag/opam-nix";
};
outputs = {
self,
nixpkgs,
opam-nix,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (system: let
why3 = let
inherit (opam-nix.lib.${system}) queryToScope;
scope = queryToScope {} {
why3 = "1.6.0";
ocaml-base-compiler = "*";
};
overlay = self: super: {
why3 = super.why3.overrideAttrs (
oa: { }
);
};
in (scope.overrideScope' overlay).why3;
pkgs = nixpkgs.legacyPackages.${system};
in {
devShell = pkgs.mkShell {
packages = [
why3
];
};
});
} Thank you for your time :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @leana8959 , I've added Discussions to the repo, so that people can ask questions without opening issues. As for your issue, why not use the If you really want to override the {
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
opam-nix.url = "github:tweag/opam-nix";
nix-optics.url = "github:balsoft/nix-optics";
};
outputs = { self, nixpkgs, opam-nix, flake-utils, nix-optics, }:
flake-utils.lib.eachDefaultSystem (system:
let
why3 = let
inherit (opam-nix.lib.${system}) queryToScope;
scope = queryToScope { } {
why3 = "1.6.0";
ocaml-base-compiler = "*";
};
overlay = self: super: {
why3 = super.why3.overrideAttrs (with nix-optics.lib;
(optics set fn).path [ "passthru" "pkgdef" "build" ]
((optics list fn).path [ 1 ] (flags:
nixpkgs.lib.remove "--disable-ide" flags
++ [ "--enable-ide" ])));
};
in (scope.overrideScope' overlay).why3;
pkgs = nixpkgs.legacyPackages.${system};
in {
devShell = pkgs.mkShell {
packages = [ why3 ];
};
});
} This modifies the second element (which is the Alternatively, just replace
|
Beta Was this translation helpful? Give feedback.
Hey @leana8959 , I've added Discussions to the repo, so that people can ask questions without opening issues.
As for your issue, why not use the
why3-ide
package? It has the--enable-ide
flag already.If you really want to override the
why3
package, something like this could work: