about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2022-05-26 00:12:57 +0300
committerVika <vika@fireburn.ru>2022-05-26 00:12:57 +0300
commit256ba343a05bc93e576837b75b8739c0fb5ed5cd (patch)
treecb549948d1bc6f6d5993670be9d62057a8ab2b46
parent5610a5f0bf1a9df02bd3d5b55e2cdebef2440360 (diff)
downloadkittybox-256ba343a05bc93e576837b75b8739c0fb5ed5cd.tar.zst
Remove redundant naersk-lib override
-rw-r--r--flake.nix7
-rw-r--r--kittybox.nix4
2 files changed, 5 insertions, 6 deletions
diff --git a/flake.nix b/flake.nix
index d437310..165b386 100644
--- a/flake.nix
+++ b/flake.nix
@@ -21,12 +21,11 @@
     nixosModules.default = import ./configuration.nix self;
   } // forAllSystems (system: let
     pkgs = nixpkgs.legacyPackages.${system};
-    naersk-lib = naersk.lib.${system}.override {
-      inherit (pkgs) rustc cargo;
-    };
   in {
     packages = {
-      kittybox = pkgs.callPackage ./kittybox.nix { inherit naersk-lib; };
+      kittybox = pkgs.callPackage ./kittybox.nix {
+        naersk = naersk.lib.${system};
+      };
       default = self.packages.${system}.kittybox;
     };
 
diff --git a/kittybox.nix b/kittybox.nix
index f42884a..ace9203 100644
--- a/kittybox.nix
+++ b/kittybox.nix
@@ -1,5 +1,5 @@
-{ stdenv, lib, openssl, zlib, pkg-config, protobuf, naersk-lib, lld, mold }:
-naersk-lib.buildPackage {
+{ stdenv, lib, openssl, zlib, pkg-config, protobuf, naersk, lld, mold }:
+naersk.buildPackage {
   pname = "kittybox";
   version = "0.1.0";