9 # Note for maintainers:
11 # These packages are only allowed to be packaged under the the condition that we
12 # - patch source/creator/config.d to not point to upstream's bug tracker
13 # - use the "barebones" configuration to remove the mascot and logo from the build
15 # We have received permission by the owner to go ahead with the packaging, as we have met all the criteria
16 # https://github.com/NixOS/nixpkgs/pull/288841#issuecomment-1950247467
19 mkGeneric = builderArgs: callPackage ./generic.nix { inherit builderArgs; };
22 inochi-creator = mkGeneric rec {
23 pname = "inochi-creator";
24 appname = "Inochi Creator";
27 src = fetchFromGitHub {
29 repo = "inochi-creator";
31 hash = "sha256-9d3j5ZL6rGOjN1GUpCIfbjby0mNMvOK7BJbHYgwLY2k=";
34 dubLock = ./creator-dub-lock.json;
37 # Upstream asks that we change the bug tracker URL to not point to the upsteam bug tracker
39 src = ./support-url.patch;
40 assignees = "TomaSajt"; # should be a comma separated list of the github usernames of the maintainers
42 # Change how duplicate locales differentiate themselves (the store paths were too long)
47 # darwin has slightly different build steps
48 broken = stdenv.hostPlatform.isDarwin;
49 changelog = "https://github.com/Inochi2D/inochi-creator/releases/tag/${src.rev}";
50 description = "An open source editor for the Inochi2D puppet format";
54 inochi-session = mkGeneric rec {
55 pname = "inochi-session";
56 appname = "Inochi Session";
59 src = fetchFromGitHub {
61 repo = "inochi-session";
63 hash = "sha256-FcgzTCpD+L50MsPP90kfL6h6DEUtiYkUV1xKww1pQfg=";
67 # Dynamically load Lua to get around the linker error on aarch64-linux.
68 # https://github.com/Inochi2D/inochi-session/pull/60
69 ./session-dynamic-lua.patch
72 dubLock = ./session-dub-lock.json;
75 patchelf $out/share/inochi-session/inochi-session --add-needed cimgui.so
78 dontStrip = true; # symbol lookup error: undefined symbol: , version
81 # darwin has slightly different build steps
82 broken = stdenv.hostPlatform.isDarwin;
83 changelog = "https://github.com/Inochi2D/inochi-session/releases/tag/${src.rev}";
84 description = "An application that allows streaming with Inochi2D puppets";