ma tools/consoles: add opl-pc-tools

This commit is contained in:
makefu 2021-10-01 18:53:52 +02:00
parent 51eaeac0bc
commit 9e27690932
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
2 changed files with 48 additions and 0 deletions

View File

@ -1,10 +1,14 @@
{ pkgs, ... }:
{
users.users.makefu.packages = with pkgs; [
# PS2
opl-utils
#opl-pc-tools
hdl-dump
bin2iso
cue2pops
# switch
nx_game_info
hactool
nsrenamer

View File

@ -0,0 +1,44 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, meson
, ninja
, qt5
, wrapQtAppsHook
}:
stdenv.mkDerivation rec {
pname = "OPL-PC-Tools";
version = "3.0";
src = fetchFromGitHub {
owner = "brainstream";
repo = "OPL-PC-Tools";
rev = version;
sha256 = "1772j99r7ssf45512z5256142gj2ds9mgqv5m8k6hszd5jbnc9qc";
};
#dontUseCmakeConfigure = true;
nativeBuildInputs = [ cmake pkg-config meson ninja
wrapQtAppsHook
];
buildInputs = with qt5;[ qtbase
qttools
];
installPhase = ''
ls -lahtr .
mkdir -p $out/bin
cp oplpctools $out/bin/
'';
meta = with lib; {
homepage = "https://github.com/joshkunz/ashuffle";
description = "Automatic library-wide shuffle for mpd";
maintainers = [ maintainers.tcbravo ];
platforms = platforms.unix;
license = licenses.mit;
};
}