Files
nixpkgs/pkgs/by-name/mi/minesector/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

59 lines
1019 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
ninja,
libtiff,
libwebp,
SDL2,
SDL2_image,
SDL2_ttf,
SDL2_mixer,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "minesector";
version = "1.1.5";
src = fetchFromGitHub {
owner = "grassdne";
repo = "minesector";
tag = finalAttrs.version;
hash = "sha256-VMTXZ4CIk9RpE4R9shHPl0R/T7mJUKY2b8Zi0DPW0/Q=";
};
nativeBuildInputs = [
cmake
ninja
];
buildInputs = [
libtiff
libwebp
SDL2
SDL2_image
SDL2_ttf
SDL2_mixer
];
strictDeps = true;
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail "set(STATIC_LINK" "# set(STATIC_LINK"
'';
passthru.updateScript = nix-update-script { };
meta = {
mainProgram = "minesector";
description = "Snazzy Minesweeper-based game built with SDL2";
homepage = "https://github.com/grassdne/minesector";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
maintainers = [ ];
};
})