From 78023b3b12e3e4999e0de6dcacb977e67bc4a9f6 Mon Sep 17 00:00:00 2001 From: rotterdam Date: Wed, 5 Apr 2023 14:52:29 -0300 Subject: [PATCH] Fixed hello template --- hello/flake.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hello/flake.nix b/hello/flake.nix index 587a41a..ee74b8c 100644 --- a/hello/flake.nix +++ b/hello/flake.nix @@ -1,5 +1,5 @@ { - description = "Flake template for a rust project"; + description = "Flake template for a nix shell with packages"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; @@ -7,6 +7,7 @@ }; outputs = { self, nixpkgs, flake-utils, ... }: - flake-utils.lib.eachDefaultSystem - (system: { devShells.default = mkShell { packages = [ hello ]; }; }); + flake-utils.lib.eachDefaultSystem (system: + let pkgs = import nixpkgs { inherit system; }; + in with pkgs; { devShells.default = mkShell { packages = [ typst ]; }; }); }