Loading
+0 −13
Original line number Diff line number Diff line
diff --git a/Makefile.in b/Makefile.in
index b82053d..37db8c9 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -50,7 +50,7 @@ fix_shebangs:
 umu/umu_version.json: umu/umu_version.json.in
 	$(info :: Updating $(@) )
 	cp $(<) $(<).tmp
-	sed 's|##UMU_VERSION##|$(shell git describe --always --long --tags)|g' -i $(<).tmp
+	sed 's|##UMU_VERSION##|@version@|g' -i $(<).tmp
 	mv $(<).tmp $(@)
 
 .PHONY: version
+36 −24
Original line number Diff line number Diff line
{
  python3Packages,
  fetchFromGitHub,
  lib,
  bash,
  cargo,
  fetchFromGitHub,
  hatch,
  lib,
  python3Packages,
  rustPlatform,
  scdoc,
  replaceVars,
  fetchpatch2,
  withTruststore ? true,
  withDeltaUpdates ? true,
}:
python3Packages.buildPythonPackage rec {
  pname = "umu-launcher-unwrapped";
  version = "1.1.4";
  version = "1.2.5";

  src = fetchFromGitHub {
    owner = "Open-Wine-Components";
    repo = "umu-launcher";
    tag = version;
    hash = "sha256-TOsVK6o2V8D7CLzVOkLs8AClrZmlVQTfeii32ZIQCu4=";
    hash = "sha256-bZ6Ywc524NrapkFrwFiWbqmVe1j0hunEH9YKrYQ8R2E=";
  };

  # Both patches can be safely removed with the next release
  patches = [
    # Patch to avoid running `git describe`
    # Fixed by https://github.com/Open-Wine-Components/umu-launcher/pull/289 upstream
    (replaceVars ./no-umu-version-json.patch { inherit version; })
    # Patch to use PREFIX in the installer call
    (fetchpatch2 {
      url = "https://github.com/Open-Wine-Components/umu-launcher/commit/602a2f84a05a63f7b1b1c4d8ca85d99fdaec2cd2.diff";
      hash = "sha256-BMinTXr926V3HlzHHabxHKvy8quEvxsZKu1hoTGQT00=";
    })
  ];
  cargoDeps = rustPlatform.fetchCargoVendor {
    inherit src;
    hash = "sha256-nU4xZn9NPd7NgexiaNYLdo4BCbH98duZ07XYeUiceP0=";
  };

  nativeBuildInputs = [
    python3Packages.build
    cargo
    hatch
    scdoc
    python3Packages.build
    python3Packages.installer
    rustPlatform.cargoSetupHook
    scdoc
  ];

  pythonPath = [
    python3Packages.filelock
    python3Packages.xlib
  pythonPath =
    with python3Packages;
    [
      pyzstd
      urllib3
      xlib
    ]
    ++ lib.optionals withTruststore [
      truststore
    ]
    ++ lib.optionals withDeltaUpdates [
      cbor2
      xxhash
    ];

  pyproject = false;
  configureScript = "./configure.sh";

  configureFlags = [
    "--use-system-pyzstd"
    "--use-system-urllib"
  ];

  makeFlags = [
    "PYTHONDIR=$(PREFIX)/${python3Packages.python.sitePackages}"
    "PYTHON_INTERPRETER=${lib.getExe python3Packages.python}"