build(nix): apply overlay for crate2nix (#1198)

This commit is contained in:
a-kenji 2022-03-10 14:59:40 +01:00 committed by GitHub
parent 2e96fcb314
commit a66ce1c86c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,6 +18,15 @@ flake-utils.lib.eachSystem [
pkgs = import nixpkgs { inherit system overlays; };
crate2nixPkgs = import nixpkgs { inherit system;
overlays = [
(self: _: {
rustc = rustToolchainToml;
cargo = rustToolchainToml;
})
];};
name = "zellij";
pname = name;
root = toString ../.;
@ -102,7 +111,7 @@ flake-utils.lib.eachSystem [
rec {
# crate2nix - better incremental builds, but uses ifd
packages.zellij = pkgs.callPackage ./crate2nix.nix {
packages.zellij = crate2nixPkgs.callPackage ./crate2nix.nix {
inherit crate2nix name src desktopItems postInstall
meta nativeBuildInputs;
};