diff --git a/pkgs/all/sideloader/default.nix b/pkgs/all/sideloader/default.nix new file mode 100644 index 0000000..36dbd73 --- /dev/null +++ b/pkgs/all/sideloader/default.nix @@ -0,0 +1,57 @@ +{ + lib, + buildDubPackage, + fetchFromGitHub, + wrapGAppsHook, + libadwaita, + harfbuzz, + libimobiledevice, + libplist, +}: +let + runtimeDeps = [ + libadwaita + harfbuzz + libimobiledevice + libplist + ]; +in +buildDubPackage rec { + pname = "sideloader"; + version = "1.0-pre3"; + + src = fetchFromGitHub { + owner = "Dadoum"; + repo = "Sideloader"; + rev = version; + hash = "sha256-FiIgAN5PHR2pouyfMy0r/ZuTt+IiFznMacrBA4GOSXk="; + }; + + postPatch = '' + substituteInPlace dub.selections.json \ + --replace-fail '"plist": "~master"' '"plist": "0.0.1"' + ''; + + dubLock = ./dub-lock.json; + + dubBuildFlags = [ ":gtk-frontend" ]; + + nativeBuildInputs = [ wrapGAppsHook ]; + + installPhase = '' + runHook preInstall + install -Dm755 bin/sideloader -t "$out/bin" + runHook postInstall + ''; + + preFixup = '' + gappsWrapperArgs+=(--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath runtimeDeps}) + ''; + + meta = with lib; { + description = "Open-source cross-platform iOS app sideloader"; + homepage = "https://github.com/Dadoum/Sideloader"; + license = licenses.sspl; + maintainers = with maintainers; [ tomodachi94 ]; + }; +} diff --git a/pkgs/all/sideloader/dub-lock.json b/pkgs/all/sideloader/dub-lock.json new file mode 100644 index 0000000..c0c3827 --- /dev/null +++ b/pkgs/all/sideloader/dub-lock.json @@ -0,0 +1,169 @@ +{ + "dependencies": { + "argparse": { + "version": "1.3.0", + "sha256": "1mgp9hs2nykpbhbnpayvm1zfvlpqwivfknci9f9hv9777514rjzk" + }, + "arsd-official": { + "version": "10.9.10", + "sha256": "06cq1c0vc7snyk3pqz9mvv5sdvjxcbhpbakdqhqpdf5l24ydc76f" + }, + "automem": { + "version": "0.6.9", + "sha256": "05zk8h81ih5jc4n8d7kgr6hv5f923ybf2pdyf2ld3imkx0zb0plr" + }, + "bindbc-freetype": { + "version": "1.0.5", + "sha256": "0yxypqf0h3vv7shda3dx7cgrg7r21w56mg6qhyfavcylqbspp8cy" + }, + "bindbc-loader": { + "version": "1.0.3", + "sha256": "0d688cwb2hjhfxc7l00cfh22prybsndk6j1hvlrf9nlzb46i4i1j" + }, + "bindbc-opengl": { + "version": "1.0.5", + "sha256": "0p26v8xk42zd07mvzjl775ypnq1f31r3c1spfp1lipyc4s4028l2" + }, + "bindbc-sdl": { + "version": "1.0.1", + "sha256": "1vfzq93mpn7rqc5jw2d0b7im061kp3vrkaf51mg32s1dswkswr19" + }, + "botan": { + "version": "1.13.6", + "sha256": "1rwky9ycfbn894dbrarqa151w4d16y40w9l4m2z943rps03gyf5p" + }, + "botan-math": { + "version": "1.0.4", + "sha256": "0a3pah3apk606skv909v5gzwv4x4sfgc2ygrjavpq8dd61g5yv2m" + }, + "cachetools": { + "version": "0.4.1", + "sha256": "1407cb3mm8pqlcljdi60lpz2vhsj6rwzax0j24xggmyhr7ij6gx7" + }, + "concepts": { + "version": "0.0.9", + "sha256": "1lv6q53r67g72wsv9g7694m7q61wwq0qb5yxxla1z6jhq815r8dv" + }, + "concurrency": { + "version": "5.0.4", + "sha256": "1b82w3h8g8hjydsw0bhwxgwajkmnybq81d7paf8mjsby784846r2" + }, + "dfl": { + "version": "224d9348286620c8ea4854690a09e7380d6f5b2f", + "repository": "git+https://github.com/Dadoum/dfl.git", + "sha256": "167dcf0lxr45j3khqlja8vcd1abq1l2d43h5lgzaq4ypq2mp2pg2" + }, + "dlangui": { + "version": "0.10.4", + "sha256": "0px1s4jlvwz1jyziypsxrcsw6c3gl6gk1g1z2979zgf9vrnfqz4l" + }, + "dqt": { + "version": "6a44b55f3a3691da930cb9eefe2a745afe1b764d", + "repository": "git+https://github.com/tim-dlang/dqt.git", + "sha256": "0qwnm8mdhv5fp44ix6q4q64mzg2vy9rpgh1rxmhnxs7rdpmzj5ib" + }, + "dsfml": { + "version": "2.1.1", + "sha256": "1fqicbzsa0n7gap9za82inw9swqiy73lzncyv24ygbfjmxnvcmin" + }, + "dxml": { + "version": "0.4.4", + "sha256": "0p5vmkw29ksh5wdxz1ijms1wblq288pv15vnbl93z7q2vgnq995w" + }, + "dynamic-loader": { + "version": "65a8b8b8a6d44d47e63bddc985268592ecf47764", + "repository": "git+https://github.com/Dadoum/dynamicloader.git", + "sha256": "06k02wcwd3mvy1sh0blabrfa90h95kkj28rwdjjb6bfcpbndwxyg" + }, + "glx-d": { + "version": "1.1.0", + "sha256": "19snz94h2z6aw9jf6r108sx8xfalm45lfi89hinjhld4x6n3pcqp" + }, + "gtk_d": { + "version": "1.0.3", + "sha256": "0dfl7zxaqj42rkipj7vkv0jrikbinr8c64yy3n02fv9b4s76jg3y" + }, + "icontheme": { + "version": "1.2.3", + "sha256": "0230kgzjvxn3j9frsl1r9n8czv7062mwhw7zs4yrqfr4b1dfk5j0" + }, + "ikod-containers": { + "version": "0.0.22", + "sha256": "0wjqds4qq3w825kyi5pf68v0ygs8pz0ais6p049qdl91mh1zi34j" + }, + "inilike": { + "version": "1.2.2", + "sha256": "0lihpkcwbs781fblcagam2h5i49ihinxd40l8gy6l9yj3zpzrb69" + }, + "intel-intrinsics": { + "version": "1.11.15", + "sha256": "0kxrkn95739ch9z4im49cr4k52kkscscxq245rffv98ccb0ch5a6" + }, + "isfreedesktop": { + "version": "0.1.1", + "sha256": "0bnjr9avvhl7s09dnbcdr5437yb18jj26fzvm7j292kvd2i8kzqz" + }, + "memutils": { + "version": "1.0.9", + "sha256": "0bpcd34n6ixqxzvvrxz77fxfy0w5pynhaxf0c4niz383fph1lp6x" + }, + "mir-core": { + "version": "1.6.0", + "sha256": "09ghix5pkld4pdi05fmis656ph6n2klk67808l5hw6f69kg8166y" + }, + "plist": { + "version": "0.0.1", + "sha256": "0chc14zzjqc2k3h09dpj89snd3rilwpcz7yv2z11yrrfkjkv0bjf" + }, + "plist-d": { + "version": "30d152e88767611e10048b25777ecb5f9075f87c", + "repository": "git+https://github.com/Dadoum/libplist-d.git", + "sha256": "1g5hs7bxwz9rn0j8afldl6la6l9dh30rqhzhhmw7rmlkyfiarxr7" + }, + "progress": { + "version": "5.0.2", + "sha256": "1gpajy2vwki0zip277bilkhzx6vkrdiwlj1wa35crsrsh8kmil4k" + }, + "provision": { + "version": "533dca306b86f9c7801354b78f5187addb58b740", + "repository": "git+https://github.com/Dadoum/Provision.git", + "sha256": "0pbmpzswicg1zcn1b1sm61vrg7js0d1x420x20533p9zs7pvbnmq" + }, + "requests": { + "version": "2.1.2", + "sha256": "10332kdsjv30zkayx3vg6lxa701wmdncf0xjxwxkcjpsw7smzs2z" + }, + "silly": { + "version": "1.2.0-dev.2", + "sha256": "009djccq3k2hlpvsbaadyvb7dmd5hsxf8h746qdkklfy42il84lg" + }, + "slf4d": { + "version": "2.4.3", + "sha256": "1745wzkial5yk0900649wh8f73nwf7wja0xyawvh5gx4zwssw04a" + }, + "test_allocator": { + "version": "0.3.4", + "sha256": "1xpjz6smxwgm4walrv3xbzi46cddc80q5n4gs7j9gm2yx11sf7gj" + }, + "undead": { + "version": "1.1.8", + "sha256": "1f7qs1qg2mq4hiwnh70malwiv0dg056pyakwwcx0y2haxi3xwbsc" + }, + "unit-threaded": { + "version": "0.10.8", + "sha256": "1jvmxka6s2zzrxns62jb50p01bgybhbkrkgi9qzq93xldc6jn2i9" + }, + "windows-headers": { + "version": "1.0.5", + "sha256": "1l79j41mm37nfg2lj5yb8hgf2mm1imnqx1sm79iki1kx4zb118j4" + }, + "x11": { + "version": "1.0.21", + "sha256": "1hz2zdn2nnyb686wlmz6m8hnxg2wf6ns2xcc9i3iwi2qcsfpywmh" + }, + "xdgpaths": { + "version": "0.2.5", + "sha256": "09l3bkcldv7ckh3d2cmivvj3cbql96a24g3khlz7zp9f1aabfykl" + } + } +}