2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "oppai-ng";
|
2021-03-15 08:37:03 +00:00
|
|
|
version = "4.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Francesco149";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-03-15 08:37:03 +00:00
|
|
|
sha256 = "sha256-L9eraLOWm1tMImS8bLB9T4Md4VdTSxqI9Bt4r8eqxqs=";
|
2020-04-24 23:36:52 +00: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-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Difficulty and pp calculator for osu!";
|
|
|
|
homepage = "https://github.com/Francesco149/oppai-ng";
|
|
|
|
license = licenses.unlicense;
|
|
|
|
maintainers = with maintainers; [ tadeokondrak ];
|
2022-04-27 09:35:20 +00:00
|
|
|
mainProgram = "oppai";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|