From 213f22722019f37dbee67d5c602a0452675639da Mon Sep 17 00:00:00 2001 From: Luc Perkins Date: Sun, 31 Jul 2022 17:26:57 +0200 Subject: [PATCH] Remove unused functions from lib --- flake.nix | 3 --- rust/flake.nix | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index ddc1f73..3acd8a3 100644 --- a/flake.nix +++ b/flake.nix @@ -41,9 +41,6 @@ inherit (pkgs.stdenv) isDarwin isLinux; in { inherit flake-utils nixpkgs; - - darwinOnly = ls: optionals isDarwin ls; - linuxOnly = ls: optionals isLinux ls; }; templates = { diff --git a/rust/flake.nix b/rust/flake.nix index 5e0f7b1..e069385 100644 --- a/rust/flake.nix +++ b/rust/flake.nix @@ -27,7 +27,8 @@ deps = with pkgs; [ openssl pkgconfig ]; rustTools = with pkgs; - [ cargo-profiler rust-analyzer ] ++ optionals isLinux (with pkgs; [ cargo-watch ]); + [ cargo-profiler rust-analyzer ] + ++ optionals isLinux (with pkgs; [ cargo-watch ]); in { packages.default = rust;