From 817f064ec6d9c8803b49294293fc349bad486316 Mon Sep 17 00:00:00 2001 From: Thomas Zahner Date: Thu, 19 Dec 2024 17:35:07 +0100 Subject: [PATCH] Simplify code --- default.nix | 14 ++++---------- flake.nix | 5 +---- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/default.nix b/default.nix index 339325d..17708c6 100644 --- a/default.nix +++ b/default.nix @@ -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"; - } - ); } diff --git a/flake.nix b/flake.nix index f85cf75..3aac916 100644 --- a/flake.nix +++ b/flake.nix @@ -59,10 +59,7 @@ }; in { - default = pkgs.symlinkJoin { - name = "all"; - paths = with code; [ app ]; - }; + default = code.app; } ); };