Unverified Commit 65dba036 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

etlegacy-unwrapped: cleanup, remove obsolete things, restore `fakeGit` (#445740)

parents 66063074 8bfb8877
Loading
Loading
Loading
Loading
+6 −18
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  writeShellApplication,
  writeScriptBin,
  fetchFromGitHub,
  cjson,
  cmake,
  git,
  makeBinaryWrapper,
  unzip,
  curl,
  freetype,
  glew,
@@ -25,15 +22,11 @@
}:
let
  version = "2.83.2";
  fakeGit = writeShellApplication {
    name = "git";

    text = ''
  fakeGit = writeScriptBin "git" ''
    if [ "$1" = "describe" ]; then
      echo "${version}"
    fi
  '';
  };
in
stdenv.mkDerivation {
  pname = "etlegacy-unwrapped";
@@ -51,9 +44,6 @@ stdenv.mkDerivation {
  nativeBuildInputs = [
    cmake
    fakeGit
    git
    makeBinaryWrapper
    unzip
  ];

  buildInputs = [
@@ -102,8 +92,6 @@ stdenv.mkDerivation {
    (lib.cmakeFeature "INSTALL_DEFAULT_BINDIR" "${placeholder "out"}/bin")
  ];

  hardeningDisable = [ "fortify" ];

  meta = {
    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";
    homepage = "https://etlegacy.com";