nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 65 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 libGL, 6 libGLU, 7 SDL, 8 SDL_mixer, 9 autoreconfHook, 10 gitUpdater, 11}: 12 13stdenv.mkDerivation (finalAttrs: { 14 pname = "hhexen"; 15 version = "1.6.4"; 16 17 src = fetchFromGitHub { 18 owner = "sezero"; 19 repo = "hhexen"; 20 rev = "hhexen-${finalAttrs.version}"; 21 hash = "sha256-D1gIdIqb6RN7TA7ezbBhy2Z82TH1quN8kgAMNRHMfhw="; 22 }; 23 24 nativeBuildInputs = [ 25 autoreconfHook 26 (lib.getDev SDL) 27 ]; 28 29 buildInputs = [ 30 libGL 31 libGLU 32 SDL 33 SDL_mixer 34 ]; 35 36 strictDeps = true; 37 enableParallelBuilding = true; 38 39 configureFlags = [ "--with-audio=sdlmixer" ]; 40 41 installPhase = '' 42 runHook preInstall 43 44 install -Dm755 hhexen-gl -t $out/bin 45 46 runHook postInstall 47 ''; 48 49 passthru.updateScript = gitUpdater { 50 rev-prefix = "hhexen-"; 51 }; 52 53 meta = { 54 description = "Linux port of Raven Game's Hexen"; 55 homepage = "https://hhexen.sourceforge.net/hhexen.html"; 56 license = lib.licenses.gpl2Plus; 57 maintainers = with lib.maintainers; [ 58 moody 59 djanatyn 60 ]; 61 mainProgram = "hhexen-gl"; 62 inherit (SDL.meta) platforms; 63 broken = stdenv.hostPlatform.isDarwin; 64 }; 65})