fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
29 lines
398 B
Nix
29 lines
398 B
Nix
{
|
|
fetchPypi,
|
|
unzip,
|
|
stdenv,
|
|
pname,
|
|
version,
|
|
jarHash,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
inherit pname version;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
format = "wheel";
|
|
python = "py3";
|
|
dist = "py3";
|
|
hash = jarHash;
|
|
};
|
|
|
|
dontUnpack = true;
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
installPhase = ''
|
|
unzip ${src}
|
|
install -D ./skein/java/skein.jar $out
|
|
'';
|
|
}
|