nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 33 lines 843 B view raw
1{ lib, stdenv, fetchurl, zlib, libtiff, libxml2, SDL, xorgproto, libX11 2, libXi, libXmu, libXext, libGLU, libGL }: 3 4stdenv.mkDerivation rec { 5 pname = "stardust"; 6 version = "0.1.13"; 7 8 src = fetchurl { 9 url = "http://iwar.free.fr/IMG/gz/${pname}-${version}.tar.gz"; 10 sha256 = "19rs9lz5y5g2yiq1cw0j05b11digw40gar6rw8iqc7bk3s8355xp"; 11 }; 12 13 buildInputs = [ 14 zlib libtiff libxml2 SDL xorgproto libX11 libXi 15 libXmu libXext libGLU libGL 16 ]; 17 18 installFlags = [ "bindir=\${out}/bin" ]; 19 20 hardeningDisable = [ "format" ]; 21 22 postConfigure = '' 23 substituteInPlace config.h \ 24 --replace '#define PACKAGE ""' '#define PACKAGE "stardust"' 25 ''; 26 27 meta = with lib; { 28 description = "Space flight simulator"; 29 maintainers = [ maintainers.raskin ]; 30 platforms = platforms.linux; 31 license = licenses.gpl2Plus; 32 }; 33}