summaryrefslogtreecommitdiffstats
path: root/pkgs/wlstream/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/wlstream/default.nix')
-rw-r--r--pkgs/wlstream/default.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/wlstream/default.nix b/pkgs/wlstream/default.nix
new file mode 100644
index 0000000..25ae554
--- /dev/null
+++ b/pkgs/wlstream/default.nix
@@ -0,0 +1,45 @@
+{ stdenv, fetchFromGitHub
+, meson, ninja, pkgconfig
+, libdrm, wayland, wayland-protocols
+, ffmpeg_4, libpulseaudio
+, fetchpatch
+}:
+
+let
+ metadata = import ./metadata.nix;
+in
+stdenv.mkDerivation rec {
+ name = "wlstream-${version}";
+ version = metadata.rev;
+
+ src = fetchFromGitHub {
+ owner = "atomnuker";
+ repo = "wlstream";
+ rev = version;
+ sha256 = metadata.sha256;
+ };
+ patches = [
+ (fetchpatch {
+ url = "https://github.com/atomnuker/wlstream/pull/4/commits/23e43186fd1ebeb553c89317f69613e67b266cd3.patch";
+ sha256 = "03v0xppjb3ns0rkdinidhp3di4k127f5gxrjklwrid5jppfgg264";
+ })
+ ];
+
+ enableParallelBuilding = true;
+ nativeBuildInputs = [ meson ninja pkgconfig ];
+ buildInputs = [
+ libdrm wayland wayland-protocols
+ ffmpeg_4 libpulseaudio
+ ];
+ mesonFlags = [
+ "-Dauto_features=enabled"
+ ];
+
+ meta = with stdenv.lib; {
+ description = "wlroots-compatible screen capture application";
+ homepage = "https://github.com/atomnuker/wlstream";
+ license = licenses.gpl2;
+ platforms = platforms.linux;
+ maintainers = with maintainers; [ colemickens ];
+ };
+}