push sheeet
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

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
{
lib,
rustPlatform,
fetchFromGitHub,
installShellFiles,
stdenv,
gcc,
cacert,
}:
rustPlatform.buildRustPackage rec {
pname = "fh";
version = "0.1.25";
src = fetchFromGitHub {
owner = "DeterminateSystems";
repo = "fh";
rev = "v${version}";
hash = "sha256-YVtFzJMdHpshtRqBDVw3Kr88psAPfcdOI0XVDGnFkq0=";
};
cargoHash = "sha256-D/8YYv9V1ny9AWFkVPgcE9doq+OxN+yiCCt074FKgn0=";
nativeBuildInputs = [
installShellFiles
rustPlatform.bindgenHook
];
checkInputs = [ cacert ];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
gcc.cc.lib
];
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
NIX_CFLAGS_COMPILE = "-I${lib.getInclude stdenv.cc.libcxx}/include/c++/v1";
};
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd fh \
--bash <($out/bin/fh completion bash) \
--fish <($out/bin/fh completion fish) \
--zsh <($out/bin/fh completion zsh)
'';
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "Official FlakeHub CLI";
homepage = "https://github.com/DeterminateSystems/fh";
changelog = "https://github.com/DeterminateSystems/fh/releases/tag/${src.rev}";
license = licenses.asl20;
maintainers = with maintainers; [ figsoda ];
mainProgram = "fh";
};
}

View File

@@ -0,0 +1,94 @@
{
stdenv,
lib,
fetchFromGitHub,
imagemagick,
gettext,
glibcLocalesUtf8,
libpng,
SDL2,
SDL2_image,
SDL2_mixer,
SDL2_ttf,
zlib,
libiconv,
gitUpdater,
}:
stdenv.mkDerivation rec {
pname = "fheroes2";
version = "1.1.10";
src = fetchFromGitHub {
owner = "ihhub";
repo = "fheroes2";
rev = version;
hash = "sha256-dtc+/FvYJPgdtrDRq+fofrlXW3NjgtFMDd6rCmweiMw=";
};
nativeBuildInputs = [ imagemagick ];
buildInputs = [
gettext
glibcLocalesUtf8
libpng
SDL2
SDL2_image
SDL2_mixer
SDL2_ttf
zlib
]
++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
makeFlags = [
"FHEROES2_STRICT_COMPILATION=1"
"FHEROES2_DATA=\"${placeholder "out"}/share/fheroes2\""
];
enableParallelBuilding = true;
postBuild = ''
# Pick guaranteed to be present UTF-8 locale.
# Otherwise `iconv` calls fail to produce valid translations.
LANG=en_US.UTF_8 make -C files/lang
'';
installPhase = ''
runHook preInstall
install -Dm755 $PWD/src/dist/fheroes2/fheroes2 $out/bin/fheroes2
install -Dm644 -t $out/share/fheroes2/files/lang $PWD/files/lang/*.mo
install -Dm644 -t $out/share/fheroes2/files/data $PWD/files/data/resurrection.h2d
install -Dm644 -t $out/share/applications $PWD/script/packaging/common/fheroes2.desktop
for size in 16 24 32 48 64 128; do
mkdir -p $out/share/icons/hicolor/"$size"x"$size"/apps
convert -resize "$size"x"$size" $PWD/src/resources/fheroes2.png $out/share/icons/hicolor/"$size"x"$size"/apps/fheroes2.png
done;
runHook postInstall
'';
passthru = {
updateScript = gitUpdater {
url = "https://github.com/ihhub/fheroes2.git";
};
};
meta = with lib; {
homepage = "https://github.com/ihhub/fheroes2";
description = "Free implementation of Heroes of Might and Magic II game engine";
mainProgram = "fheroes2";
longDescription = ''
In order to play this game, an original game data is required.
Please refer to README of the project for instructions.
On linux, the data can be placed in ~/.local/share/fheroes2 folder.
'';
license = licenses.gpl2Plus;
maintainers = [ ];
platforms = platforms.unix;
};
}