nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 86 lines 2.7 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 replaceVars, 6 callPackage, 7}: 8 9# Note for maintainers: 10# 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 14# 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 17 18let 19 mkGeneric = builderArgs: callPackage ./generic.nix { inherit builderArgs; }; 20in 21{ 22 inochi-creator = mkGeneric rec { 23 pname = "inochi-creator"; 24 appname = "Inochi Creator"; 25 version = "0.8.6"; 26 27 src = fetchFromGitHub { 28 owner = "Inochi2D"; 29 repo = "inochi-creator"; 30 rev = "v${version}"; 31 hash = "sha256-9d3j5ZL6rGOjN1GUpCIfbjby0mNMvOK7BJbHYgwLY2k="; 32 }; 33 34 dubLock = ./creator-dub-lock.json; 35 36 patches = [ 37 # Upstream asks that we change the bug tracker URL to not point to the upstream bug tracker 38 (replaceVars ./support-url.patch { 39 assignees = "TomaSajt"; # should be a comma separated list of the github usernames of the maintainers 40 }) 41 # Change how duplicate locales differentiate themselves (the store paths were too long) 42 ./translations.patch 43 ]; 44 45 meta = { 46 # darwin has slightly different build steps 47 broken = stdenv.hostPlatform.isDarwin; 48 changelog = "https://github.com/Inochi2D/inochi-creator/releases/tag/${src.rev}"; 49 description = "Open source editor for the Inochi2D puppet format"; 50 }; 51 }; 52 53 inochi-session = mkGeneric rec { 54 pname = "inochi-session"; 55 appname = "Inochi Session"; 56 version = "0.8.7"; 57 58 src = fetchFromGitHub { 59 owner = "Inochi2D"; 60 repo = "inochi-session"; 61 rev = "v${version}"; 62 hash = "sha256-FcgzTCpD+L50MsPP90kfL6h6DEUtiYkUV1xKww1pQfg="; 63 }; 64 65 patches = [ 66 # Dynamically load Lua to get around the linker error on aarch64-linux. 67 # https://github.com/Inochi2D/inochi-session/pull/60 68 ./session-dynamic-lua.patch 69 ]; 70 71 dubLock = ./session-dub-lock.json; 72 73 preFixup = '' 74 patchelf $out/share/inochi-session/inochi-session --add-needed cimgui.so 75 ''; 76 77 dontStrip = true; # symbol lookup error: undefined symbol: , version 78 79 meta = { 80 # darwin has slightly different build steps 81 broken = stdenv.hostPlatform.isDarwin; 82 changelog = "https://github.com/Inochi2D/inochi-session/releases/tag/${src.rev}"; 83 description = "Application that allows streaming with Inochi2D puppets"; 84 }; 85 }; 86}