From 4386fe3c7e054d666d77b980b5ea819a2d52d109 Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Thu, 30 May 2024 10:42:39 +0200 Subject: [PATCH] stop using deprecated flake attributes --- flake.nix | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/flake.nix b/flake.nix index c01a44a..20384b5 100644 --- a/flake.nix +++ b/flake.nix @@ -28,24 +28,26 @@ nativeBuildInputs = with pkgs; [ pkg-config ]; }; - }; - defaultPackage = packages.crystal2nix; + default = crystal2nix; + }; - checks = flake-utils.lib.flattenTree rec { + checks = flake-utils.lib.flattenTree { specs = packages.crystal2nix; }; - devShell = pkgs.mkShell { - buildInputs = with pkgs; [ - openssl - ]; - - nativeBuildInputs = with pkgs; [ - pkgconfig - crystal - shards - ]; + devShells = flake-utils.lib.flattenTree { + default = pkgs.mkShell { + buildInputs = with pkgs; [ + openssl + ]; + + nativeBuildInputs = with pkgs; [ + pkg-config + crystal + shards + ]; + }; }; }); }