From e2607d77cc06baf959d09f305cd429f164192461 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Mon, 6 May 2024 23:53:12 +0200 Subject: [PATCH] fix(c): fix flake output (devshell, apps) --- c/flake.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/c/flake.nix b/c/flake.nix index 2188e03..ed72ed7 100644 --- a/c/flake.nix +++ b/c/flake.nix @@ -19,13 +19,12 @@ ] (system: function nixpkgs.legacyPackages.${system}); in rec { - devShells.default = forAllSystems ( - pkgs: - pkgs.mkShell { + devShells = forAllSystems (pkgs: { + default = pkgs.mkShell { hardeningDisable = [ "fortify" ]; inputsFrom = pkgs.lib.attrsets.attrValues packages; - } - ); + }; + }); packages = forAllSystems (pkgs: rec { default = hello; @@ -43,9 +42,12 @@ }; }); - apps = rec { + apps = forAllSystems (pkgs: rec { default = hello; - hello = builtins.mapAttrs (name: value: "${value.hello}/bin/hello") packages; - }; + hello = { + program = "${packages.${pkgs.system}.hello}/bin/hello"; + type = "app"; + }; + }); }; }