2019-07-10 13:13:06 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2019-06-19 05:10:17 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "oppai-ng";
|
2019-07-10 13:13:06 +02:00
|
|
|
version = "3.2.3";
|
2019-06-19 05:10:17 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Francesco149";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-07-10 13:13:06 +02:00
|
|
|
sha256 = "1wrnpnx1yl0pdzmla4knlpcwy7baamy2wpdypnbdqxrn0zkw7kzk";
|
2019-06-19 05:10:17 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
./build
|
|
|
|
./libbuild
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D oppai $out/bin/oppai
|
|
|
|
install -D oppai.c $out/include/oppai.c
|
|
|
|
install -D liboppai.so $out/lib/liboppai.so
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-07-10 13:13:06 +02:00
|
|
|
description = "Difficulty and pp calculator for osu!";
|
2019-06-19 05:10:17 +02:00
|
|
|
homepage = "https://github.com/Francesco149/oppai-ng";
|
|
|
|
license = licenses.unlicense;
|
|
|
|
maintainers = with maintainers; [ tadeokondrak ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|