floorp: Fix tests for floorp-bin change

Several of the `floorp` tests were broken by the upstream switch to
`floorp-bin`. Most changes were to do with not being able to use
`programs.floorp.wrappedPackageName` in expected results.
This commit is contained in:
Timothy Gallion 2026-01-03 12:45:16 -05:00 committed by Austin Horstman
parent bba859cd85
commit d21bee5abf
5 changed files with 5 additions and 4 deletions

View file

@ -37,7 +37,7 @@ in
if pkgs.stdenv.hostPlatform.isDarwin then
"${cfg.finalPackage}/${darwinPath}"
else
"${cfg.finalPackage}/lib/${cfg.wrappedPackageName}";
"${cfg.finalPackage}/lib/${cfg.finalPackage.unwrapped.libName or cfg.wrappedPackageName}";
config_file = "${libDir}/distribution/policies.json";
in
''

View file

@ -92,7 +92,7 @@ in
if pkgs.stdenv.hostPlatform.isDarwin then
"${cfg.finalPackage}/${darwinPath}"
else
"${cfg.finalPackage}/lib/${cfg.wrappedPackageName}";
"${cfg.finalPackage}/lib/${cfg.finalPackage.unwrapped.libName or cfg.wrappedPackageName}";
config_file = "${libDir}/distribution/policies.json";
in
''

View file

@ -19,7 +19,7 @@ let
substitutions = [
"--replace"
"@name@"
cfg.wrappedPackageName
cfg.package.meta.mainProgram
];
};

View file

@ -25,6 +25,7 @@ in
binaryName = cfg.wrappedPackageName;
gtk3 = null;
meta.description = "I pretend to be ${cfg.name}";
meta.mainProgram = lib.toLower cfg.name;
};
outPath = null;
buildScript =

View file

@ -21,7 +21,7 @@ in
// {
nmt.script = ''
assertFileRegex \
home-path/bin/${cfg.wrappedPackageName} \
home-path/bin/${cfg.finalPackage.meta.mainProgram} \
MOZ_APP_LAUNCHER
'';
}