From 18ceffed07f680f092ea9b07b002a1b18d37070f Mon Sep 17 00:00:00 2001 From: Vika Date: Sun, 25 Aug 2024 21:30:54 +0300 Subject: Proper main menu icon --- default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'default.nix') diff --git a/default.nix b/default.nix index c129b56..a1d2a80 100644 --- a/default.nix +++ b/default.nix @@ -5,7 +5,7 @@ let src = let - suffixes = [ ]; + suffixes = []; suffixFilter = name: type: let base = baseNameOf (toString name); in type == "directory" || lib.any (ext: lib.hasSuffix ext base) suffixes; @@ -19,6 +19,12 @@ let args = { # pname and version are read from Cargo.toml inherit src; + dummySrc = craneLib.mkDummySrc { + inherit src; + extraDummyScript = '' + cp -r ${./icons.toml} $out/icons.toml + ''; + }; strictDeps = true; # cargoExtraArgs can be used to inject features @@ -38,7 +44,7 @@ let in craneLib.buildPackage (args' // { passthru = { - inherit cargoArtifacts; + inherit src cargoArtifacts; clippy = craneLib.cargoClippy args'; }; }) -- cgit 1.4.1