trackballs: fix build (#398793)

authored by Aleksana and committed by GitHub 3ae1ea31 1eb1a7ae

+12 -8
+12 -8
pkgs/by-name/tr/trackballs/package.nix
··· 14 14 libGL, 15 15 }: 16 16 17 - stdenv.mkDerivation rec { 17 + stdenv.mkDerivation (finalAttrs: { 18 18 pname = "trackballs"; 19 19 version = "1.3.4"; 20 20 21 21 src = fetchFromGitHub { 22 22 owner = "trackballs"; 23 - repo = pname; 24 - rev = "v${version}"; 25 - sha256 = "sha256-JKSiNe5mu8rRztUhduGFY6IsSMx6VyBqKcGO5EssI+8="; 23 + repo = "trackballs"; 24 + tag = "v${finalAttrs.version}"; 25 + hash = "sha256-JKSiNe5mu8rRztUhduGFY6IsSMx6VyBqKcGO5EssI+8="; 26 26 }; 27 27 28 + postPatch = '' 29 + substituteInPlace src/glHelp.h --replace-fail _TTF_Font TTF_Font 30 + ''; 31 + 28 32 nativeBuildInputs = [ cmake ]; 29 33 buildInputs = [ 30 34 zlib ··· 38 42 libGL 39 43 ]; 40 44 41 - meta = with lib; { 45 + meta = { 42 46 homepage = "https://trackballs.github.io/"; 43 47 description = "3D Marble Madness clone"; 44 48 mainProgram = "trackballs"; 45 - platforms = platforms.linux; 49 + platforms = lib.platforms.linux; 46 50 # Music is licensed under Ethymonics Free Music License. 47 - license = licenses.gpl2Plus; 51 + license = lib.licenses.gpl2Plus; 48 52 }; 49 - } 53 + })