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
38 lines
752 B
Nix
38 lines
752 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
SDL2,
|
|
SDL2_image,
|
|
SDL2_mixer,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "vectoroids";
|
|
version = "1.1.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://tuxpaint.org/ftp/unix/x/vectoroids/src/vectoroids-${finalAttrs.version}.tar.gz";
|
|
hash = "sha256-aLV4rrNuLKODYGD+0UBAQeQKKCNlFOX2g5CcjjkCWyQ=";
|
|
};
|
|
|
|
buildInputs = [
|
|
SDL2
|
|
SDL2_image
|
|
SDL2_mixer
|
|
];
|
|
|
|
preConfigure = ''
|
|
sed -i s,/usr/local,$out, Makefile
|
|
mkdir -p $out/bin
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "http://www.newbreedsoftware.com/vectoroids/";
|
|
description = "Clone of the classic arcade game Asteroids by Atari";
|
|
mainProgram = "vectoroids";
|
|
license = lib.licenses.gpl2Plus;
|
|
inherit (SDL2.meta) platforms;
|
|
};
|
|
})
|