clean up and packaging upho

This commit is contained in:
陈浩南 2023-06-28 16:37:13 +08:00
parent abc94915c7
commit 3687b48fbd
5 changed files with 22 additions and 17 deletions

View File

@ -92,7 +92,7 @@
{
touchix = inputs.touchix.packages."${prev.system}";
nix-vscode-extensions = inputs.nix-vscode-extensions.extensions."${prev.system}";
localPackages = import ./localPackages { pkgs = inputs.nixpkgs.legacyPackages.${prev.system}; };
localPackages = import ./localPackages { pkgs = prev; };
} )];
config.allowUnfree = true;
};

View File

@ -1,7 +1,6 @@
{ pkgs }: with pkgs;
{
mathtools = callPackage ./mathtools {};
vesta = callPackage ./vesta {};
typora = callPackage ./typora {};
upho = callPackage ./upho {};
upho = python3Packages.callPackage ./upho {};
vesta = callPackage ./vesta {};
}

View File

@ -1,10 +0,0 @@
{ lib, buildPythonPackage }: buildPythonPackage rec
{
pname = "mathtools";
version = "1.2";
src = lib.fetchPypi
{
inherit pname version;
sha256 = lib.fakeSha256;
};
}

View File

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchFromGitHub, numpy, h5py, phonopy, mathtools }: buildPythonPackage rec
{ lib, fetchFromGitHub, buildPythonPackage, numpy, h5py, phonopy }: buildPythonPackage rec
{
pname = "upho";
version = "0.6.6";
@ -9,5 +9,17 @@
rev = "v${version}";
sha256 = "sha256-kOUwdXNrBfFglxGzO+qgRuSjiIOMafrgHkrV9blYs9c=";
};
propagatedBuildInputs = [ numpy h5py phonopy mathtools ];
doCheck = false;
propagatedBuildInputs =
[
numpy h5py phonopy
# (
# buildPythonPackage
# {
# pname = "group";
# inherit version;
# src = "${src}/group";
# }
# )
];
}

View File

@ -3,7 +3,11 @@ inputs:
config.environment.systemPackages = with inputs.pkgs;
[
ovito paraview localPackages.vesta # vsim
(python3.withPackages (ps: with ps; [ phonopy inquirerpy requests tqdm ]))
(python3.withPackages (ps: with ps;
[
phonopy inquirerpy requests tqdm
localPackages.upho
]))
mathematica octave root
];
}