Files
nixpkgs/pkgs/by-name/ou/outfly/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

81 lines
1.6 KiB
Nix

{
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-5t6PPlfV/INqb4knz1Bv6dqw47RxUmVO0DSlQNUIQL4=";
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";
};
}