flake/pkgs/overlay.nix

21 lines
676 B
Nix

inputs: final: prev: {
wgautomesh = let
toolchain = inputs.fenix-monthly.packages.${final.stdenv.hostPlatform.system}.latest.toolchain;
cargo = toolchain;
platform = final.makeRustPlatform {
rustc = toolchain;
cargo = toolchain;
};
wgam-nightly = prev.wgautomesh.override {rustPlatform = platform;};
wgam-lyn = wgam-nightly.overrideAttrs (old: rec {
src = builtins.fetchGit {
url = "https://git.deuxfleurs.fr/lynatic/wgautomesh.git";
rev = "9482910911d6cccce92d6990acbee7a5df3d879d";
};
cargoDeps = platform.importCargoLock {
lockFile = src + "/Cargo.lock";
};
});
in
wgam-lyn;
}