aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2022-03-10 14:59:40 +0100
committerGitHub <noreply@github.com>2022-03-10 14:59:40 +0100
commita66ce1c86c1e21e8ab9dff41d87d44856420e2c7 (patch)
treebed62cc74ac752c8bb3cc41aafdbe7407054dca2
parentdocs(changelog): forward mouse events (diff)
downloadsl0ppij-a66ce1c86c1e21e8ab9dff41d87d44856420e2c7.tar.gz
sl0ppij-a66ce1c86c1e21e8ab9dff41d87d44856420e2c7.tar.xz
sl0ppij-a66ce1c86c1e21e8ab9dff41d87d44856420e2c7.zip
build(nix): apply overlay for crate2nix (#1198)
-rw-r--r--nix/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/nix/default.nix b/nix/default.nix
index a904abdb..f7c59d48 100644
--- a/nix/default.nix
+++ b/nix/default.nix
@@ -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;
};