From dcc1f00006e5049c19d936bc2070c8c562a8363f Mon Sep 17 00:00:00 2001 From: Moritz 'e1mo' Fromm Date: Fri, 1 Sep 2023 00:13:49 +0200 Subject: [PATCH] matrix-synapse-saml-mapper: Hotfix missing res dir --- packages/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/default.nix b/packages/default.nix index a0388d7..6b967fd 100644 --- a/packages/default.nix +++ b/packages/default.nix @@ -165,6 +165,14 @@ final: prev: hash = "sha256-s2AQ92VQOXg7lxjWZKsM5h+4IWnsnLRbOC2mAmr1nZo="; }; + # This is absolutely ugly and not nice + # In theory python should pick up the res as data files (manual bdist_wheel does manage to do so) + # but somehow this isn't the case with buildPythonPackage + # FIXME: Make this something more robus and "propper" + postInstall = '' + cp -ar $src/matrix_synapse_saml_mapper/res $out/lib/python*/site-packages/*/ + ''; + nativeBuildInputs = with pfinal; [ setuptools-scm ];