From 002e313b223421e0a530dac4a201481c135db6bc Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sun, 7 Apr 2024 19:15:02 -0400 Subject: [PATCH] nix: Fix callPackage usage --- flake.nix | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 8de9d7e..f7d513c 100644 --- a/flake.nix +++ b/flake.nix @@ -5,10 +5,17 @@ nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; }; - outputs = { nixpkgs, ... }: { - packages.x86_64-linux = { - sakaya = nixpkgs.callPackage ./nix/package.nix { }; - default = nixpkgs.callPackage ./nix/package.nix { }; + outputs = + { nixpkgs, ... }: + let + inherit (nixpkgs.legacyPackages.x86_64-linux) nixfmt-rfc-style callPackage; + in + { + formatter.x86_64-linux = nixfmt-rfc-style; + + packages.x86_64-linux = { + sakaya = callPackage ./nix/package.nix { }; + default = callPackage ./nix/package.nix { }; + }; }; - }; }