Skip to content

Commit 0f5ad4b

Browse files
committed
Nix expr: Fill out meta on assemblies and executable derivations
1 parent 27e711d commit 0f5ad4b

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

Dist/packages.nix

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@
3434
, extraDotnetBuildFlags
3535
}: let
3636
getMainOutput = lib.getOutput "out";
37+
commonMeta = {
38+
description = "Build artifacts for the \"managed\" (.NET) components of EmuHawk and DiscoHawk";
39+
homepage = "https://github.com/TASEmulators/BizHawk";
40+
downloadPage = "https://github.com/TASEmulators/BizHawk/releases";
41+
changelog = "https://tasvideos.org/BizHawk/ReleaseHistory";
42+
license = lib.licenses.mit; # doesn't include third-party code, which should bring it up to GPLv3, see https://gitlab.com/YoshiRulz/yoshis-hawk-thoughts/-/issues/61
43+
maintainers = [ lib.maintainers.YoshiRulz ];
44+
};
3745
/** to override just one, you'll probably want to manually import packages-managed.nix, and combine that with the output of this */
3846
buildExtraManagedDepsFor = hawkSourceInfo: let
3947
pm = import ./packages-managed.nix {
@@ -181,7 +189,9 @@
181189
# can similarly override `assets` output, only used by launch script to populate `BIZHAWK_DATA_HOME` if the dir doesn't exist at runtime,
182190
# and `waterboxCores` output, which holds just the Waterbox cores, as the name suggests
183191
};
184-
meta.sourceProvenance = [ lib.sourceTypes.binaryNativeCode ]; # `extraUnmanagedDeps` and `waterboxCores` outputs; will work on from-source later
192+
meta = commonMeta // {
193+
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ]; # `extraUnmanagedDeps` and `waterboxCores` outputs; will work on from-source later
194+
};
185195
}));
186196
buildInstallable =
187197
{ bizhawkAssemblies
@@ -216,7 +226,11 @@
216226
};
217227
meta = let
218228
p = lib.systems.inspect.patterns;
219-
in {
229+
in bizhawkAssemblies.meta // {
230+
description = {
231+
discohawk-monort = "Simple frontend for disc image conversion using BizHawk's .NET libraries";
232+
emuhawk-monort = "Multi-system emulator front-end, featuring QoL features for casual players, as well as recording/playback and debugging tools, making it the first choice for Tool-Assisted Speedrunners";
233+
}.${pname};
220234
platforms = [
221235
(p.isLinux // p.isAarch64)
222236
(p.isLinux // p.isx86_32)
@@ -281,7 +295,9 @@ in {
281295
inherit gnome-themes-extra mono;
282296
hawkSourceInfo = hawkSourceInfo';
283297
};
284-
meta.sourceProvenance = [ lib.sourceTypes.binaryNativeCode lib.sourceTypes.binaryBytecode ];
298+
meta = commonMeta // {
299+
sourceProvenance = [ lib.sourceTypes.binaryNativeCode lib.sourceTypes.binaryBytecode ];
300+
};
285301
} ''
286302
${if zippedTarball then ''mkdir -p $assets; tar -xf '${artifact}'/*.tar -C $assets'' else ''cp -aT '${artifact}' $assets''}
287303
cd $assets

0 commit comments

Comments
 (0)