etlegacy-unwrapped: cleanup, remove obsolete things, restore `fakeGit`

+6 -18
+6 -18
pkgs/by-name/et/etlegacy-unwrapped/package.nix
··· 1 { 2 lib, 3 stdenv, 4 - writeShellApplication, 5 fetchFromGitHub, 6 cjson, 7 cmake, 8 - git, 9 - makeBinaryWrapper, 10 - unzip, 11 curl, 12 freetype, 13 glew, ··· 25 }: 26 let 27 version = "2.83.2"; 28 - fakeGit = writeShellApplication { 29 - name = "git"; 30 - 31 - text = '' 32 - if [ "$1" = "describe" ]; then 33 - echo "${version}" 34 - fi 35 - ''; 36 - }; 37 in 38 stdenv.mkDerivation { 39 pname = "etlegacy-unwrapped"; ··· 51 nativeBuildInputs = [ 52 cmake 53 fakeGit 54 - git 55 - makeBinaryWrapper 56 - unzip 57 ]; 58 59 buildInputs = [ ··· 101 (lib.cmakeFeature "INSTALL_DEFAULT_BASEDIR" "${placeholder "out"}/lib/etlegacy") 102 (lib.cmakeFeature "INSTALL_DEFAULT_BINDIR" "${placeholder "out"}/bin") 103 ]; 104 - 105 - hardeningDisable = [ "fortify" ]; 106 107 meta = { 108 description = "ET: Legacy is an open source project based on the code of Wolfenstein: Enemy Territory which was released in 2010 under the terms of the GPLv3 license";
··· 1 { 2 lib, 3 stdenv, 4 + writeScriptBin, 5 fetchFromGitHub, 6 cjson, 7 cmake, 8 curl, 9 freetype, 10 glew, ··· 22 }: 23 let 24 version = "2.83.2"; 25 + fakeGit = writeScriptBin "git" '' 26 + if [ "$1" = "describe" ]; then 27 + echo "${version}" 28 + fi 29 + ''; 30 in 31 stdenv.mkDerivation { 32 pname = "etlegacy-unwrapped"; ··· 44 nativeBuildInputs = [ 45 cmake 46 fakeGit 47 ]; 48 49 buildInputs = [ ··· 91 (lib.cmakeFeature "INSTALL_DEFAULT_BASEDIR" "${placeholder "out"}/lib/etlegacy") 92 (lib.cmakeFeature "INSTALL_DEFAULT_BINDIR" "${placeholder "out"}/bin") 93 ]; 94 95 meta = { 96 description = "ET: Legacy is an open source project based on the code of Wolfenstein: Enemy Territory which was released in 2010 under the terms of the GPLv3 license";