diff options
Diffstat (limited to 'pkgs/by-name/po')
-rw-r--r-- | pkgs/by-name/po/polylux2pdfpc/package.nix | 34 | ||||
-rw-r--r-- | pkgs/by-name/po/poptracker/assets-path.diff | 12 | ||||
-rw-r--r-- | pkgs/by-name/po/poptracker/package.nix | 74 | ||||
-rw-r--r-- | pkgs/by-name/po/powersupply/package.nix | 62 |
4 files changed, 182 insertions, 0 deletions
diff --git a/pkgs/by-name/po/polylux2pdfpc/package.nix b/pkgs/by-name/po/polylux2pdfpc/package.nix new file mode 100644 index 0000000000000..e0ab8318f69d5 --- /dev/null +++ b/pkgs/by-name/po/polylux2pdfpc/package.nix @@ -0,0 +1,34 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, nix-update-script +}: + +let + dirname = "pdfpc-extractor"; +in +rustPlatform.buildRustPackage rec { + pname = "polylux2pdfpc"; + version = "0.3.1"; + + src = fetchFromGitHub { + owner = "andreasKroepelin"; + repo = "polylux"; + rev = "v${version}"; + sparseCheckout = [ dirname ]; + hash = "sha256-GefX7XsUfOMCp2THstSizRGpKAoq7yquVukWQjGuFgc="; + }; + sourceRoot = "${src.name}/${dirname}"; + + cargoHash = "sha256-vmCaQxPkzz1ZVmtX7L3VeQb3kWhVqyPoQ1NrTSiJN9Y="; + + passthru.updateScript = nix-update-script { }; + + meta = with lib; { + description = "A tool to make pdfpc interpret slides created by polylux correctly"; + homepage = "https://github.com/andreasKroepelin/polylux/tree/main/pdfpc-extractor"; + license = licenses.mit; + mainProgram = "polylux2pdfpc"; + maintainers = [ maintainers.diogotcorreia ]; + }; +} diff --git a/pkgs/by-name/po/poptracker/assets-path.diff b/pkgs/by-name/po/poptracker/assets-path.diff new file mode 100644 index 0000000000000..7312b407a26f0 --- /dev/null +++ b/pkgs/by-name/po/poptracker/assets-path.diff @@ -0,0 +1,12 @@ +diff --git a/src/poptracker.cpp b/src/poptracker.cpp +index dbf477b..6ccfac2 100644 +--- a/src/poptracker.cpp ++++ b/src/poptracker.cpp +@@ -217,6 +217,7 @@ PopTracker::PopTracker(int argc, char** argv, bool cli, const json& args) + Pack::addOverrideSearchPath(os_pathcat(appPath, "user-override")); // portable/system overrides + Assets::addSearchPath(os_pathcat(appPath, "assets")); // system assets + } ++ Assets::addSearchPath("@assets@"); + + _asio = new asio::io_service(); + HTTP::certfile = asset("cacert.pem"); // https://curl.se/docs/caextract.html diff --git a/pkgs/by-name/po/poptracker/package.nix b/pkgs/by-name/po/poptracker/package.nix new file mode 100644 index 0000000000000..6ef94feb3484a --- /dev/null +++ b/pkgs/by-name/po/poptracker/package.nix @@ -0,0 +1,74 @@ +{ lib +, stdenv +, fetchFromGitHub +, util-linux +, SDL2 +, SDL2_ttf +, SDL2_image +, openssl +, which +, libsForQt5 +, makeWrapper +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "poptracker"; + version = "0.25.7"; + + src = fetchFromGitHub { + owner = "black-sliver"; + repo = "PopTracker"; + rev = "v${finalAttrs.version}"; + hash = "sha256-wP2d8cWNg80KUyw1xPQMriNRg3UyXgKaSoJ17U5vqCE="; + fetchSubmodules = true; + }; + + patches = [ ./assets-path.diff ]; + + postPatch = '' + substituteInPlace src/poptracker.cpp --replace "@assets@" "$out/share/$pname/" + ''; + + enableParallelBuilding = true; + + nativeBuildInputs = [ + util-linux + makeWrapper + ]; + + buildInputs = [ + SDL2 + SDL2_ttf + SDL2_image + openssl + ]; + + buildFlags = [ + "native" + "CONF=RELEASE" + "VERSION=v${finalAttrs.version}" + ]; + + installPhase = '' + runHook preInstall + install -m555 -Dt $out/bin build/linux-x86_64/poptracker + install -m444 -Dt $out/share/${finalAttrs.pname} assets/* + wrapProgram $out/bin/poptracker --prefix PATH : ${lib.makeBinPath [ which libsForQt5.kdialog ]} + runHook postInstall + ''; + + meta = with lib; { + description = "Scriptable tracker for randomized games"; + longDescription = '' + Universal, scriptable randomizer tracking solution that is open source. Supports auto-tracking. + + PopTracker packs should be placed in `~/PopTracker/packs` or `./packs`. + ''; + homepage = "https://github.com/black-sliver/PopTracker"; + changelog = "https://github.com/black-sliver/PopTracker/releases/tag/v${finalAttrs.version}"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ freyacodes ]; + mainProgram = "poptracker"; + platforms = [ "x86_64-linux" ]; + }; +}) diff --git a/pkgs/by-name/po/powersupply/package.nix b/pkgs/by-name/po/powersupply/package.nix new file mode 100644 index 0000000000000..ce86cf2da7d0c --- /dev/null +++ b/pkgs/by-name/po/powersupply/package.nix @@ -0,0 +1,62 @@ +{ lib +, python3 +, fetchFromGitLab +, desktop-file-utils +, gobject-introspection +, gtk3 +, libhandy +, meson +, ninja +, pkg-config +, wrapGAppsHook +}: + +python3.pkgs.buildPythonApplication rec { + pname = "powersupply"; + version = "0.9.0"; + + format = "other"; + + src = fetchFromGitLab { + owner = "martijnbraam"; + repo = "powersupply"; + rev = version; + hash = "sha256-3NXoOqveMlMezYe4C78F3764KeAy5Sz3M714PO3h/eI="; + }; + + nativeBuildInputs = [ + desktop-file-utils + gtk3 + gobject-introspection + meson + ninja + pkg-config + wrapGAppsHook + ]; + + buildInputs = [ + gtk3 + libhandy + ]; + + propagatedBuildInputs = with python3.pkgs; [ + pygobject3 + ]; + + dontWrapGApps = true; + + preFixup = '' + makeWrapperArgs+=("''${gappsWrapperArgs[@]}") + ''; + + strictDeps = true; + + meta = with lib; { + description = "Graphical app to display power status of mobile Linux platforms"; + homepage = "https://gitlab.com/MartijnBraam/powersupply"; + license = licenses.mit; + mainProgram = "powersupply"; + platforms = platforms.linux; + maintainers = with maintainers; [ Luflosi ]; + }; +} |