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

+6 -18
+6 -18
pkgs/by-name/et/etlegacy-unwrapped/package.nix
··· 1 1 { 2 2 lib, 3 3 stdenv, 4 - writeShellApplication, 4 + writeScriptBin, 5 5 fetchFromGitHub, 6 6 cjson, 7 7 cmake, 8 - git, 9 - makeBinaryWrapper, 10 - unzip, 11 8 curl, 12 9 freetype, 13 10 glew, ··· 25 22 }: 26 23 let 27 24 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 - }; 25 + fakeGit = writeScriptBin "git" '' 26 + if [ "$1" = "describe" ]; then 27 + echo "${version}" 28 + fi 29 + ''; 37 30 in 38 31 stdenv.mkDerivation { 39 32 pname = "etlegacy-unwrapped"; ··· 51 44 nativeBuildInputs = [ 52 45 cmake 53 46 fakeGit 54 - git 55 - makeBinaryWrapper 56 - unzip 57 47 ]; 58 48 59 49 buildInputs = [ ··· 101 91 (lib.cmakeFeature "INSTALL_DEFAULT_BASEDIR" "${placeholder "out"}/lib/etlegacy") 102 92 (lib.cmakeFeature "INSTALL_DEFAULT_BINDIR" "${placeholder "out"}/bin") 103 93 ]; 104 - 105 - hardeningDisable = [ "fortify" ]; 106 94 107 95 meta = { 108 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";