From a6446c112e61a7006d683e2f930aa4b19e60f1e4 Mon Sep 17 00:00:00 2001 From: Raphael Robatsch Date: Mon, 12 Jun 2023 22:36:59 +0200 Subject: [PATCH] cutecapture: init at 1.4.0 https://github.com/Gotos/CuteCapture/ --- .../video/cutecapture/default.nix | 47 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 49 insertions(+) create mode 100644 pkgs/applications/video/cutecapture/default.nix diff --git a/pkgs/applications/video/cutecapture/default.nix b/pkgs/applications/video/cutecapture/default.nix new file mode 100644 index 000000000000..48d9c238964e --- /dev/null +++ b/pkgs/applications/video/cutecapture/default.nix @@ -0,0 +1,47 @@ +{ 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 <