From 5852f26bdcdca4a33b37d1631cfb3897bcc36fcc Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Tue, 25 Jul 2023 13:27:31 +0000 Subject: treewide: noop: refer to `src.name` or similar in `sourceRoot` where appropriate, part 1: trivial cases --- pkgs/servers/search/quickwit/default.nix | 4 ++-- pkgs/servers/search/zincsearch/default.nix | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'pkgs/servers/search') diff --git a/pkgs/servers/search/quickwit/default.nix b/pkgs/servers/search/quickwit/default.nix index fb4e6d66f2fea..e3eaf86c16e50 100644 --- a/pkgs/servers/search/quickwit/default.nix +++ b/pkgs/servers/search/quickwit/default.nix @@ -11,7 +11,7 @@ let pname = "quickwit"; version = "0.6.2"; in -rustPlatform.buildRustPackage { +rustPlatform.buildRustPackage rec { inherit pname version; src = fetchFromGitHub { @@ -30,7 +30,7 @@ rustPlatform.buildRustPackage { --replace '&[]' '&["."]' ''; - sourceRoot = "source/quickwit"; + sourceRoot = "${src.name}/quickwit"; buildInputs = lib.optionals stdenv.isDarwin [ Security ]; diff --git a/pkgs/servers/search/zincsearch/default.nix b/pkgs/servers/search/zincsearch/default.nix index 20f48867bdc2c..b9316756b193f 100644 --- a/pkgs/servers/search/zincsearch/default.nix +++ b/pkgs/servers/search/zincsearch/default.nix @@ -17,7 +17,7 @@ let inherit src version; pname = "zinc-ui"; - sourceRoot = "source/web"; + sourceRoot = "${src.name}/web"; npmDepsHash = "sha256-2AjUaEOn2Tj+X4f42SvNq1kX07WxkB1sl5KtGdCjbdw="; -- cgit 1.4.1