nixpkgs/pkgs/tools/misc/oppai-ng/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
770 B
Nix
Raw Normal View History

{ lib, stdenv
2019-07-10 11:13:06 +00:00
, fetchFromGitHub
}:
2019-06-19 03:10:17 +00:00
stdenv.mkDerivation rec {
pname = "oppai-ng";
2021-03-13 10:20:39 +00:00
version = "4.1.0";
2019-06-19 03:10:17 +00:00
src = fetchFromGitHub {
owner = "Francesco149";
repo = pname;
rev = version;
2021-03-13 10:20:39 +00:00
sha256 = "sha256-L9eraLOWm1tMImS8bLB9T4Md4VdTSxqI9Bt4r8eqxqs=";
2019-06-19 03:10:17 +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
'';
meta = with lib; {
2019-07-10 11:13:06 +00:00
description = "Difficulty and pp calculator for osu!";
2019-06-19 03:10:17 +00:00
homepage = "https://github.com/Francesco149/oppai-ng";
license = licenses.unlicense;
maintainers = with maintainers; [ tadeokondrak ];
mainProgram = "oppai";
2019-06-19 03:10:17 +00:00
platforms = platforms.all;
};
}