Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
autoreconfHook,
|
|
libusb1,
|
|
sfml_2,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "cutecapture";
|
|
version = "1.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Gotos";
|
|
repo = "cutecapture";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-V8BlZykh9zOTcEypu96Ft9/6CtjsybtD8lBsg9sF5sQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
];
|
|
|
|
buildInputs = [
|
|
libusb1
|
|
sfml_2
|
|
];
|
|
|
|
postPatch = ''
|
|
cat > get_version.sh <<EOF
|
|
#!${stdenv.shell}
|
|
echo ${lib.escapeShellArg finalAttrs.version}
|
|
EOF
|
|
'';
|
|
|
|
doInstallCheck = true;
|
|
|
|
postInstall = ''
|
|
install -Dm644 -t $out/lib/udev/rules.d 95-{3,}dscapture.rules
|
|
install -Dm444 -t $out/share/applications Cute{3,}DSCapture.desktop
|
|
install -Dm444 -t $out/share/icons/hicolor/128x128/apps Cute{3,}DSCapture.png
|
|
'';
|
|
|
|
meta = {
|
|
description = "Nintendo DS and 3DS capture software for Linux and Mac";
|
|
homepage = "https://github.com/Gotos/CuteCapture";
|
|
license = lib.licenses.asl20;
|
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
|
maintainers = with lib.maintainers; [ raphaelr ];
|
|
};
|
|
})
|