about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2021-01-28 15:12:55 +0000
committerAlyssa Ross <hi@alyssa.is>2021-02-27 16:41:43 +0000
commit661dd1d3f4ff6cb2cf07a0851d44ed279bf862e7 (patch)
tree59773fa64f9a194cbdbadb4f3e411f968ffa7c9a
parente7c24f90e6092bff156600c4a056bdaef5a55de4 (diff)
downloadnixlib-661dd1d3f4ff6cb2cf07a0851d44ed279bf862e7.tar
nixlib-661dd1d3f4ff6cb2cf07a0851d44ed279bf862e7.tar.gz
nixlib-661dd1d3f4ff6cb2cf07a0851d44ed279bf862e7.tar.bz2
nixlib-661dd1d3f4ff6cb2cf07a0851d44ed279bf862e7.tar.lz
nixlib-661dd1d3f4ff6cb2cf07a0851d44ed279bf862e7.tar.xz
nixlib-661dd1d3f4ff6cb2cf07a0851d44ed279bf862e7.tar.zst
nixlib-661dd1d3f4ff6cb2cf07a0851d44ed279bf862e7.zip
pinball: init at 0.3.20201218
I chose "pinball" over "emilia-pinball", because the former seems to
be much more widely used in distributions.
-rw-r--r--nixpkgs/pkgs/games/pinball/default.nix40
-rw-r--r--nixpkgs/pkgs/top-level/all-packages.nix5
2 files changed, 45 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/games/pinball/default.nix b/nixpkgs/pkgs/games/pinball/default.nix
new file mode 100644
index 000000000000..73b719b2b700
--- /dev/null
+++ b/nixpkgs/pkgs/games/pinball/default.nix
@@ -0,0 +1,40 @@
+{ lib, stdenv, fetchurl, autoreconfHook, pkg-config
+, libglvnd, SDL, SDL_image, SDL_mixer, xlibs
+}:
+
+stdenv.mkDerivation rec {
+  pname = "pinball";
+  version = "0.3.20201218";
+
+  src = fetchurl {
+    url = "mirror://sourceforge/pinball/pinball-${version}.tar.gz";
+    sha256 = "0vacypp3ksq1hs6hxpypx7nrfkprbl4ksfywcncckwrh4qcir631";
+  };
+
+  postPatch = ''
+    sed -i 's/^AUTOMAKE_OPTIONS = gnu$/AUTOMAKE_OPTIONS = foreign/' Makefile.am
+  '';
+
+  nativeBuildInputs = [ autoreconfHook pkg-config ];
+  buildInputs = [ libglvnd SDL SDL_image SDL_mixer xlibs.libSM ];
+  strictDeps = true;
+
+  configureFlags = [
+    "--with-sdl-prefix=${lib.getDev SDL}"
+  ];
+
+  NIX_CFLAGS_COMPILE = [
+    "-I${lib.getDev SDL_image}/include/SDL"
+    "-I${lib.getDev SDL_mixer}/include/SDL"
+  ];
+
+  enableParallelBuilding = true;
+
+  meta = with lib; {
+    homepage = "https://purl.org/rzr/pinball";
+    description = "Emilia Pinball simulator";
+    license = licenses.gpl2Only;
+    maintainers = with maintainers; [ qyliss ];
+    platforms = platforms.linux;
+  };
+}
diff --git a/nixpkgs/pkgs/top-level/all-packages.nix b/nixpkgs/pkgs/top-level/all-packages.nix
index 4590c46fe5b3..4de5157be0d6 100644
--- a/nixpkgs/pkgs/top-level/all-packages.nix
+++ b/nixpkgs/pkgs/top-level/all-packages.nix
@@ -27011,6 +27011,11 @@ in
     boost = boost166;
   };
 
+  pinball = callPackage ../games/pinball {
+    autoreconfHook = with buildPackages;
+      autoreconfHook.override { automake = automake115x; };
+  };
+
   pingus = callPackage ../games/pingus {};
 
   pioneer = callPackage ../games/pioneer { };