nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 53 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 makeWrapper, 7 sdl2-compat, 8 vulkan-loader, 9}: 10 11stdenv.mkDerivation (finalAttrs: { 12 pname = "bstone"; 13 version = "1.3.3"; 14 15 src = fetchFromGitHub { 16 owner = "bibendovsky"; 17 repo = "bstone"; 18 tag = "v${finalAttrs.version}"; 19 hash = "sha256-Svqm8gpZ2TgI2MdJc+gY9O7xCYYNo84/bbbqprBFpcc="; 20 }; 21 22 nativeBuildInputs = [ 23 cmake 24 makeWrapper 25 ]; 26 27 buildInputs = [ 28 sdl2-compat 29 vulkan-loader 30 ]; 31 32 postInstall = '' 33 mkdir -p $out/{bin,share/bibendovsky/bstone} 34 mv $out/bstone $out/bin 35 mv $out/*.txt $out/share/bibendovsky/bstone 36 37 wrapProgram $out/bin/bstone \ 38 --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ vulkan-loader ]} 39 ''; 40 41 meta = { 42 description = "Unofficial source port for the Blake Stone series"; 43 homepage = "https://github.com/bibendovsky/bstone"; 44 changelog = "https://github.com/bibendovsky/bstone/blob/${finalAttrs.src.rev}/CHANGELOG.md"; 45 license = with lib.licenses; [ 46 gpl2Plus # Original game source code 47 mit # BStone 48 ]; 49 maintainers = with lib.maintainers; [ keenanweaver ]; 50 mainProgram = "bstone"; 51 platforms = lib.platforms.linux; # TODO: macOS / Darwin support 52 }; 53})