32 lines
745 B
Nix
32 lines
745 B
Nix
{ stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "oppai-ng";
|
|
version = "3.2.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Francesco149";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1cq8kvw33dnafs06j54qgc475jma81g7mh0pmiinybfgzypm4fmx";
|
|
};
|
|
|
|
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; {
|
|
description = "difficulty and pp calculator for osu!";
|
|
homepage = "https://github.com/Francesco149/oppai-ng";
|
|
license = licenses.unlicense;
|
|
maintainers = with maintainers; [ tadeokondrak ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|