Further simplify flake

This commit is contained in:
Thomas Zahner 2024-12-19 18:22:01 +01:00
parent 817f064ec6
commit 2aff2bdec3
2 changed files with 2 additions and 19 deletions

View file

@ -1,15 +1,5 @@
{ { pkgs }:
pkgs,
nixpkgs,
system,
rust-overlay,
rustVersion,
}:
let let
rustPkgs = import nixpkgs {
inherit system;
overlays = [ (import rust-overlay) ];
};
in in
{ {
app = pkgs.rustPlatform.buildRustPackage { app = pkgs.rustPlatform.buildRustPackage {

View file

@ -49,14 +49,7 @@
system: system:
let let
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
code = pkgs.callPackage ./. { code = import ./default.nix { inherit pkgs; };
inherit
nixpkgs
system
rust-overlay
rustVersion
;
};
in in
{ {
default = code.app; default = code.app;