nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 39 lines 721 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitLab, 5 cmake, 6 zlib, 7 SDL2, 8}: 9 10stdenv.mkDerivation (finalAttrs: { 11 pname = "hatari"; 12 version = "2.6.0"; 13 14 src = fetchFromGitLab { 15 domain = "framagit.org"; 16 owner = "hatari"; 17 repo = "hatari"; 18 tag = "v${finalAttrs.version}"; 19 hash = "sha256-0KXnLsDmvLPzXsRE1QSymzcx/aX7kNxXSWYcZ2qZ0pw="; 20 }; 21 22 # For pthread_cancel 23 cmakeFlags = [ "-DCMAKE_EXE_LINKER_FLAGS=-lgcc_s" ]; 24 25 nativeBuildInputs = [ cmake ]; 26 27 buildInputs = [ 28 zlib 29 SDL2 30 ]; 31 32 meta = { 33 homepage = "http://hatari.tuxfamily.org/"; 34 description = "Atari ST/STE/TT/Falcon emulator"; 35 license = lib.licenses.gpl2Plus; 36 platforms = lib.platforms.linux; 37 maintainers = [ ]; 38 }; 39})