mirror of
https://git.adityakumar.xyz/nix-matlab.git
synced 2024-11-10 00:29:45 +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
|
||||
# because in order to use the matlab engine, one needs to be inside an
|
||||
# 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)
|
||||
name = "matlab-python-package";
|
||||
unpackCmd = ''
|
||||
|
@ -174,7 +174,7 @@
|
|||
name = "matlab-python-shell";
|
||||
inherit targetPkgs;
|
||||
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 "$@"
|
||||
'';
|
||||
meta = metaCommon // {
|
||||
|
@ -205,7 +205,12 @@
|
|||
};
|
||||
};
|
||||
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;
|
||||
devShell.x86_64-linux = pkgs.mkShell {
|
||||
|
|
Loading…
Reference in a new issue