mirror of
https://github.com/Hopiu/lychee.git
synced 2026-03-17 05:00:26 +00:00
Further simplify flake
This commit is contained in:
parent
817f064ec6
commit
2aff2bdec3
2 changed files with 2 additions and 19 deletions
12
default.nix
12
default.nix
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue