add zpp-bits

This commit is contained in:
陈浩南 2023-09-25 21:24:25 +08:00
parent bdd8e82b4c
commit e21c7a916a
2 changed files with 19 additions and 0 deletions

View File

@ -29,4 +29,5 @@
eigengdb = python3Packages.callPackage ./eigengdb {}; eigengdb = python3Packages.callPackage ./eigengdb {};
nodesoup = callPackage ./nodesoup {}; nodesoup = callPackage ./nodesoup {};
matplotplusplus = callPackage ./matplotplusplus { inherit nodesoup; }; matplotplusplus = callPackage ./matplotplusplus { inherit nodesoup; };
zpp-bits = callPackage ./zpp-bits {};
} }

View File

@ -0,0 +1,18 @@
{ stdenv, fetchFromGitHub }: stdenv.mkDerivation rec
{
pname = "zpp-bits";
version = "4.4.19";
src = fetchFromGitHub
{
owner = "eyalz800";
repo = "zpp_bits";
rev = "v${version}";
sha256 = "ejIwrvCFALuBQbQhTfzjBb11oMR/akKnboB60GWbjlQ=";
};
phases = [ "installPhase" ];
installPhase =
''
mkdir -p $out/include
cp $src/zpp_bits.h $out/include
'';
}