2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2019-07-10 12:13:06 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2019-06-19 04:10:17 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "oppai-ng";
|
2020-09-05 13:27:38 +01:00
|
|
|
version = "3.3.0";
|
2019-06-19 04:10:17 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Francesco149";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-09-05 13:27:38 +01:00
|
|
|
sha256 = "0ymprwyv92pr58851wzryymhfznnpwcbg4m1yri0c9cyzvabwmfk";
|
2019-06-19 04:10:17 +01: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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-07-10 12:13:06 +01:00
|
|
|
description = "Difficulty and pp calculator for osu!";
|
2019-06-19 04:10:17 +01:00
|
|
|
homepage = "https://github.com/Francesco149/oppai-ng";
|
|
|
|
license = licenses.unlicense;
|
|
|
|
maintainers = with maintainers; [ tadeokondrak ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|