diff --git a/flake.lock b/flake.lock index 19a1649..926819c 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1720110915, - "narHash": "sha256-f97oAi1FkI1yP7atMkrUgdHuYHjQOlu1YnlghK8fGzU=", + "lastModified": 1720368505, + "narHash": "sha256-5r0pInVo5d6Enti0YwUSQK4TebITypB42bWy5su3MrQ=", "owner": "nixos", "repo": "nixpkgs", - "rev": "a1ecdd6b1ad1dcf345ca0a83e9a96b391e951544", + "rev": "ab82a9612aa45284d4adf69ee81871a389669a9e", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 0ae83a7..566c97b 100644 --- a/flake.nix +++ b/flake.nix @@ -30,26 +30,7 @@ funzzyNightly = pkgs.copkgs.funzzyNightly; }; - devShells."${system}".default = pkgs.mkShell { - packages = with pkgs; [ - rustc - cargo - rustfmt - - libiconv - - # For development install latest version of funzzy - copkgs.funzzyNightly - - # if system contains "darwin" then darwin.apple_sdk.frameworks.CoreServices else null - # Fix error: `ld: framework not found CoreServices` - (if system == "x86_64-darwin" || - system == "aarch64-darwin" - then darwin.apple_sdk.frameworks.CoreServices - else null - ) - ]; - }; + devShells."${system}".default = import ./nix/development-environment.nix { inherit pkgs; }; } ) systems; in diff --git a/nix/development-environment.nix b/nix/development-environment.nix new file mode 100644 index 0000000..84f3dc0 --- /dev/null +++ b/nix/development-environment.nix @@ -0,0 +1,19 @@ +{ pkgs }: + pkgs.mkShell { + packages = with pkgs; [ + rustc + cargo + rustfmt + + # For development install latest version of funzzy + copkgs.funzzyNightly + + # if system contains "darwin" then darwin.apple_sdk.frameworks.CoreServices else null + # Fix error: `ld: framework not found CoreServices` + (if system == "x86_64-darwin" || + system == "aarch64-darwin" + then darwin.apple_sdk.frameworks.CoreServices + else null + ) + ]; + }