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,
nixpkgs,
system,
rust-overlay,
rustVersion,
}:
{ pkgs }:
let
rustPkgs = import nixpkgs {
inherit system;
overlays = [ (import rust-overlay) ];
};
in
{
app = pkgs.rustPlatform.buildRustPackage {

View file

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