Skip to content

Commit

Permalink
feat: use crane instead of buildRustPackage
Browse files Browse the repository at this point in the history
  • Loading branch information
thecaralice committed Sep 29, 2024
1 parent 9738e86 commit 6504e57
Show file tree
Hide file tree
Showing 5 changed files with 6,573 additions and 46 deletions.
16 changes: 16 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@
flake-parts.follows = "flake-parts";
nixpkgs.follows = "nixpkgs";
};
crane.url = "github:ipetkov/crane";
};
outputs =
inputs@{
self,
nixpkgs,
flake-parts,
ez-configs,
crane,
...
}:
flake-parts.lib.mkFlake { inherit inputs; } {
Expand All @@ -27,14 +29,18 @@
ezConfigs.root = ./.;
ezConfigs.earlyModuleArgs = {
inherit self;
inherit nixpkgs;
};

flake.lib = import ./lib { inherit nixpkgs; };

perSystem =
{ pkgs, ... }:
let
craneLib = crane.mkLib pkgs;
in
{
packages.server = pkgs.callPackage ./packages/server { };
packages.server = pkgs.callPackage ./packages/server { inherit craneLib; };
packages.frontends = pkgs.callPackage ./packages/frontends { };
};
};
Expand Down
Loading

0 comments on commit 6504e57

Please sign in to comment.