depot/third_party/nixpkgs/pkgs/tools/misc/oppai-ng/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

35 lines
757 B
Nix

{ lib, stdenv
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "oppai-ng";
version = "4.1.0";
src = fetchFromGitHub {
owner = "Francesco149";
repo = pname;
rev = version;
sha256 = "sha256-L9eraLOWm1tMImS8bLB9T4Md4VdTSxqI9Bt4r8eqxqs=";
};
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 lib; {
description = "Difficulty and pp calculator for osu!";
homepage = "https://github.com/Francesco149/oppai-ng";
license = licenses.unlicense;
maintainers = with maintainers; [ ];
mainProgram = "oppai";
platforms = platforms.all;
};
}