2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, libusb1
|
|
|
|
, sfml
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "cutecapture";
|
|
|
|
version = "1.4.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Gotos";
|
|
|
|
repo = "cutecapture";
|
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
hash = "sha256-V8BlZykh9zOTcEypu96Ft9/6CtjsybtD8lBsg9sF5sQ=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libusb1
|
|
|
|
sfml
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
cat > get_version.sh <<EOF
|
|
|
|
#!${stdenv.shell}
|
|
|
|
echo ${lib.escapeShellArg finalAttrs.version}
|
|
|
|
EOF
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -Dm644 -t $out/lib/udev/rules.d 95-{3,}dscapture.rules
|
2024-01-02 11:29:13 +00:00
|
|
|
install -Dm444 -t $out/share/applications Cute{3,}DSCapture.desktop
|
|
|
|
install -Dm444 -t $out/share/icons/hicolor/128x128/apps Cute{3,}DSCapture.png
|
2023-07-15 17:15:38 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A (3)DS capture software for Linux and Mac";
|
|
|
|
homepage = "https://github.com/Gotos/CuteCapture";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
maintainers = with maintainers; [ raphaelr ];
|
|
|
|
};
|
|
|
|
})
|