mirror of
https://git.adityakumar.xyz/nix-matlab.git
synced 2024-11-12 17:29:44 +00:00
Remove version suffix from python package
This commit is contained in:
parent
98e56e744c
commit
aa934ff115
1 changed files with 8 additions and 3 deletions
11
flake.nix
11
flake.nix
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue