From a4522a90a74d22d38d088d6b13c4c6f2abd92f4e Mon Sep 17 00:00:00 2001 From: "git@71rd.net" Date: Sat, 24 Aug 2024 22:49:52 +0000 Subject: [PATCH 1/2] maintainer: add 71rd --- maintainers/maintainer-list.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 950d650649a0..1027d2928ec2 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -262,6 +262,11 @@ githubId = 12578560; name = "Quinn Bohner"; }; + _71rd = { + name = "71rd"; + github = "71rd"; + githubId = 69214273; + }; _71zenith = { email = "71zenith@proton.me"; github = "71zenith"; From 19cc9e9ad205d9f5243f2693bae7826081649d72 Mon Sep 17 00:00:00 2001 From: "git@71rd.net" Date: Sat, 24 Aug 2024 22:40:22 +0000 Subject: [PATCH 2/2] outfly: init at v0.14.0 --- pkgs/by-name/ou/outfly/package.nix | 80 ++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 pkgs/by-name/ou/outfly/package.nix diff --git a/pkgs/by-name/ou/outfly/package.nix b/pkgs/by-name/ou/outfly/package.nix new file mode 100644 index 000000000000..27137a9591fd --- /dev/null +++ b/pkgs/by-name/ou/outfly/package.nix @@ -0,0 +1,80 @@ +{ + lib, + fetchFromGitea, + rustPlatform, + makeDesktopItem, + pkg-config, + libxkbcommon, + alsa-lib, + libGL, + vulkan-loader, + wayland, + libXrandr, + libXcursor, + libX11, + libXi, +}: + +rustPlatform.buildRustPackage rec { + pname = "outfly"; + version = "0.14.0"; + src = fetchFromGitea { + domain = "codeberg.org"; + owner = "outfly"; + repo = "outfly"; + rev = "refs/tags/v${version}"; + hash = "sha256-FRvu3FgbT3i5888ll573nhb7naYx04Oi8nrcfgEHxUo="; + }; + + runtimeInputs = [ + libxkbcommon + libGL + libXrandr + libX11 + vulkan-loader + ]; + + buildInputs = [ + alsa-lib.dev + libXcursor + libXi + wayland + ]; + + nativeBuildInputs = [ pkg-config ]; + doCheck = false; # no meaningful tests + + postFixup = '' + patchelf $out/bin/outfly \ + --add-rpath ${lib.makeLibraryPath runtimeInputs} + ''; + + cargoHash = "sha256-Hs7IxDildYzDYMUjv7fN1cUArKNehX2al++g/DoZ7rk="; + + desktopItems = [ + (makeDesktopItem { + name = "outfly"; + exec = "outfly"; + desktopName = "OutFly"; + categories = [ "Game" ]; + }) + ]; + meta = { + description = "Breathtaking 3D space game in the rings of Jupiter"; + homepage = "https://yunicode.itch.io/outfly"; + downloadPage = "https://codeberg.org/outfly/outfly/releases"; + changelog = "https://codeberg.org/outfly/outfly/releases/tag/v${version}"; + license = with lib.licenses; [ + cc-by-30 + cc-by-40 + cc-by-sa-20 + cc-by-sa-30 + cc0 + gpl3 + ofl + publicDomain + ]; + maintainers = with lib.maintainers; [ _71rd ]; + mainProgram = "outfly"; + }; +}