mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-08 21:24:03 +00:00
Merge pull request #301881 from keenanweaver/master
bstone: init at 1.2.12
This commit is contained in:
commit
8a1018a2b7
47
pkgs/by-name/bs/bstone/package.nix
Normal file
47
pkgs/by-name/bs/bstone/package.nix
Normal file
@ -0,0 +1,47 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, gcc12Stdenv
|
||||
, SDL2
|
||||
, libGL
|
||||
}:
|
||||
|
||||
gcc12Stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "bstone";
|
||||
version = "1.2.12";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bibendovsky";
|
||||
repo = "bstone";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-wtW595cSoVTZaVykxOkJViNs3OmuIch9nA5s1SqwbJo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libGL
|
||||
SDL2
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/bin
|
||||
mv $out/bstone* $out/bin
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Unofficial source port for the Blake Stone series";
|
||||
homepage = "https://github.com/bibendovsky/bstone";
|
||||
changelog = "https://github.com/bibendovsky/bstone/blob/${finalAttrs.src.rev}/CHANGELOG.md";
|
||||
license = with lib.licenses; [
|
||||
gpl2Plus # Original game source code
|
||||
mit # BStone
|
||||
];
|
||||
maintainers = with lib.maintainers; [ keenanweaver ];
|
||||
mainProgram = "bstone";
|
||||
platforms = lib.platforms.linux; #TODO: macOS / Darwin support
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user