From e0fe2b97bef7dfa005e34bfc85eb5712bbf13550 Mon Sep 17 00:00:00 2001 From: daimond113 Date: Wed, 26 Feb 2025 22:47:46 +0100 Subject: [PATCH] nix: add mainProgram Silences warnings like "getExe: Package "copyparty-1.16.15" does not have the meta.mainProgram attribute. We'll assume that the main program has the same name for now, but this behavior is deprecated, because it leads to surprising errors when the assumption does not hold. If the package has a main program, please set `meta.mainProgram` in its definition to make this warning go away. Otherwise, if the package does not have a main program, or if you don't control its definition, use getExe' to specify the name to the program, such as lib.getExe' foo "bar"." --- contrib/package/nix/copyparty/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/package/nix/copyparty/default.nix b/contrib/package/nix/copyparty/default.nix index 140fedfb..bafa4e66 100644 --- a/contrib/package/nix/copyparty/default.nix +++ b/contrib/package/nix/copyparty/default.nix @@ -64,4 +64,5 @@ in stdenv.mkDerivation { --set PATH '${lib.makeBinPath ([ utillinux ] ++ lib.optional withMediaProcessing ffmpeg)}:$PATH' \ --add-flags "$out/share/copyparty-sfx.py" ''; + meta.mainProgram = "copyparty"; }