diff options
Diffstat (limited to 'pkgs/applications/video/gpu-screen-recorder/gpu-screen-recorder-gtk.nix')
-rw-r--r-- | pkgs/applications/video/gpu-screen-recorder/gpu-screen-recorder-gtk.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/applications/video/gpu-screen-recorder/gpu-screen-recorder-gtk.nix b/pkgs/applications/video/gpu-screen-recorder/gpu-screen-recorder-gtk.nix new file mode 100644 index 000000000000..6bfb425f0af9 --- /dev/null +++ b/pkgs/applications/video/gpu-screen-recorder/gpu-screen-recorder-gtk.nix @@ -0,0 +1,46 @@ +{ stdenv, lib, fetchgit, pkg-config, makeWrapper, gtk3, libX11, libXrandr +, libpulseaudio, gpu-screen-recorder }: + +stdenv.mkDerivation rec { + pname = "gpu-screen-recorder-gtk"; + version = "0.1.0"; + + src = fetchgit { + url = "https://repo.dec05eba.com/gpu-screen-recorder-gtk"; + rev = "4c317abd0531f8e155fbbbcd32850bbeebbf2ead"; + sha256 = "sha256-5W6qmUMP31ndRDxMHuQ/XnZysPQgaie0vVlMTzfODU4="; + }; + + patches = [ ./fix-nvfbc-check.patch ]; + + nativeBuildInputs = [ + pkg-config + makeWrapper + ]; + + buildInputs = [ + gtk3 + libX11 + libXrandr + libpulseaudio + ]; + + buildPhase = '' + ./build.sh + ''; + + installPhase = '' + install -Dt $out/bin/ gpu-screen-recorder-gtk + install -Dt $out/share/applications/ gpu-screen-recorder-gtk.desktop + + wrapProgram $out/bin/gpu-screen-recorder-gtk --prefix PATH : ${lib.makeBinPath [ gpu-screen-recorder ]} + ''; + + meta = with lib; { + description = "GTK frontend for gpu-screen-recorder."; + homepage = "https://git.dec05eba.com/gpu-screen-recorder-gtk/about/"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ babbaj ]; + platforms = [ "x86_64-linux" ]; + }; +} |