mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 10:53:11 +00:00
bf995e3641
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*".*\.";' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*)\.";/\1";/'
42 lines
760 B
Nix
42 lines
760 B
Nix
{ lib
|
||
, stdenv
|
||
, fetchFromGitHub
|
||
, glib
|
||
, SDL2
|
||
, libGL
|
||
, pkg-config
|
||
, autoreconfHook
|
||
}:
|
||
|
||
stdenv.mkDerivation rec {
|
||
pname = "sopwith";
|
||
version = "2.5.0";
|
||
|
||
src = fetchFromGitHub {
|
||
owner = "fragglet";
|
||
repo = "sdl-sopwith";
|
||
rev = "refs/tags/sdl-sopwith-${version}";
|
||
hash = "sha256-e7/Cv/v5NhYG5eb9B5oVxh/Dbmm2v4Y4KUKI4JI5SFw=";
|
||
};
|
||
|
||
nativeBuildInputs = [
|
||
autoreconfHook
|
||
pkg-config
|
||
];
|
||
|
||
buildInputs = [
|
||
glib
|
||
SDL2
|
||
libGL
|
||
];
|
||
|
||
meta = with lib; {
|
||
homepage = "https://github.com/fragglet/sdl-sopwith";
|
||
description = "Classic biplane shoot ‘em-up game";
|
||
license = licenses.gpl2Plus;
|
||
mainProgram = "sopwith";
|
||
maintainers = with maintainers; [ evilbulgarian ];
|
||
platforms = platforms.unix;
|
||
};
|
||
}
|