Remove version suffix from python package

This commit is contained in:
Doron Behar 2022-04-02 08:52:05 +03:00
parent 98e56e744c
commit aa934ff115

View file

@ -123,7 +123,7 @@
# set, defined with `packageOverrides`, but this won't bring any benefit # set, defined with `packageOverrides`, but this won't bring any benefit
# because in order to use the matlab engine, one needs to be inside an # because in order to use the matlab engine, one needs to be inside an
# FHSUser environment anyway. # FHSUser environment anyway.
packages.x86_64-linux.matlab-python-package-R2021b = pkgs.python3.pkgs.buildPythonPackage rec { packages.x86_64-linux.matlab-python-package = pkgs.python3.pkgs.buildPythonPackage rec {
# No version - can be used with every matlab version (R2021b or R2021a etc) # No version - can be used with every matlab version (R2021b or R2021a etc)
name = "matlab-python-package"; name = "matlab-python-package";
unpackCmd = '' unpackCmd = ''
@ -174,7 +174,7 @@
name = "matlab-python-shell"; name = "matlab-python-shell";
inherit targetPkgs; inherit targetPkgs;
runScript = shellHooksCommon + '' runScript = shellHooksCommon + ''
export PYTHONPATH=${self.packages.x86_64-linux.matlab-python-package-R2021b}/${pkgs.python3.sitePackages} export PYTHONPATH=${self.packages.x86_64-linux.matlab-python-package}/${pkgs.python3.sitePackages}
exec python "$@" exec python "$@"
''; '';
meta = metaCommon // { meta = metaCommon // {
@ -205,7 +205,12 @@
}; };
}; };
overlay = final: prev: { overlay = final: prev: {
inherit (self.packages.x86_64-linux) matlab matlab-shell matlab-mlint matlab-mex; inherit (self.packages.x86_64-linux)
matlab
matlab-shell
matlab-mlint
matlab-mex
;
}; };
inherit shellHooksCommon; inherit shellHooksCommon;
devShell.x86_64-linux = pkgs.mkShell { devShell.x86_64-linux = pkgs.mkShell {