Skip to content

Commit

Permalink
nix: Fix callPackage usage
Browse files Browse the repository at this point in the history
  • Loading branch information
donovanglover committed Apr 7, 2024
1 parent 63dfee8 commit 002e313
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
};
};
};
}

0 comments on commit 002e313

Please sign in to comment.