Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6 libusb1, 7 sfml_2, 8}: 9 10stdenv.mkDerivation (finalAttrs: { 11 pname = "cutecapture"; 12 version = "1.4.0"; 13 14 src = fetchFromGitHub { 15 owner = "Gotos"; 16 repo = "cutecapture"; 17 tag = "v${finalAttrs.version}"; 18 hash = "sha256-V8BlZykh9zOTcEypu96Ft9/6CtjsybtD8lBsg9sF5sQ="; 19 }; 20 21 nativeBuildInputs = [ 22 autoreconfHook 23 ]; 24 25 buildInputs = [ 26 libusb1 27 sfml_2 28 ]; 29 30 postPatch = '' 31 cat > get_version.sh <<EOF 32 #!${stdenv.shell} 33 echo ${lib.escapeShellArg finalAttrs.version} 34 EOF 35 ''; 36 37 doInstallCheck = true; 38 39 postInstall = '' 40 install -Dm644 -t $out/lib/udev/rules.d 95-{3,}dscapture.rules 41 install -Dm444 -t $out/share/applications Cute{3,}DSCapture.desktop 42 install -Dm444 -t $out/share/icons/hicolor/128x128/apps Cute{3,}DSCapture.png 43 ''; 44 45 meta = { 46 description = "(3)DS capture software for Linux and Mac"; 47 homepage = "https://github.com/Gotos/CuteCapture"; 48 license = lib.licenses.asl20; 49 platforms = lib.platforms.linux ++ lib.platforms.darwin; 50 maintainers = with lib.maintainers; [ raphaelr ]; 51 }; 52})