59 lines
1,005 B
Nix
59 lines
1,005 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitLab,
|
|
qt6,
|
|
portaudio,
|
|
kame-tools,
|
|
vgmstream,
|
|
rstmcpp,
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
name = "kame-editor";
|
|
version = "1.4.1";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "beelzy";
|
|
repo = name;
|
|
# tag = version;
|
|
rev = "82c9c445644b133b6d0ce3529e65b1a3df83c804";
|
|
hash = "sha256-V2nMvVIjFRM8++XQ9tkE2OiZzCvdrg0jK69HM+ZIVyA=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace kame-editor.pro \
|
|
--replace-fail "/usr/local/bin/" "$out/bin"
|
|
'';
|
|
|
|
buildInputs = [
|
|
qt6.qtbase
|
|
portaudio
|
|
];
|
|
|
|
qtWrapperArgs = [
|
|
"--prefix PATH : ${
|
|
lib.makeBinPath [
|
|
kame-tools
|
|
vgmstream
|
|
rstmcpp
|
|
]
|
|
}"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
qt6.qmake
|
|
qt6.wrapQtAppsHook
|
|
];
|
|
|
|
postBuild = ''
|
|
bash ./buildicons.sh
|
|
'';
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/share/icons/hicolor
|
|
mkdir -p $out/share/applications
|
|
|
|
cp kame-editor.desktop $out/share/applications
|
|
cp -r icons/. $out/share/icons/hicolor
|
|
'';
|
|
}
|