ds: add osu fast generators

This commit is contained in:
2021-03-01 12:00:58 +01:00
parent ed932c9921
commit 1d015c7e1e
5 changed files with 179 additions and 0 deletions

23
garlic/ds/osu/bw.nix Normal file
View File

@@ -0,0 +1,23 @@
{
stdenv
, python3
, gzip
}:
resultTree:
stdenv.mkDerivation {
name = "osu-bw.json.gz";
preferLocalBuild = true;
src = ./bw.py;
phases = [ "unpackPhase" "installPhase" ];
unpackPhase = ''
cp $src bw.py
'';
buildInputs = [ python3 gzip ];
installPhase = ''
python bw.py ${resultTree} | gzip > $out
'';
}