Simplify code

This commit is contained in:
Thomas Zahner 2024-12-19 17:35:07 +01:00
parent c4d43b0277
commit 817f064ec6
2 changed files with 5 additions and 14 deletions

View file

@ -10,8 +10,10 @@ let
inherit system;
overlays = [ (import rust-overlay) ];
};
common = {
in
{
app = pkgs.rustPlatform.buildRustPackage {
pname = "lychee";
version = "0.17.0";
src = ./.;
@ -36,12 +38,4 @@ let
"--skip=collector::tests::test_url_without_extension_is_html"
];
};
in
{
app = pkgs.rustPlatform.buildRustPackage (
common
// {
pname = "lychee";
}
);
}

View file

@ -59,10 +59,7 @@
};
in
{
default = pkgs.symlinkJoin {
name = "all";
paths = with code; [ app ];
};
default = code.app;
}
);
};