Skip to content

Commit

Permalink
wayfarer: init at 1.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
fgaz committed Apr 9, 2024
1 parent 122959e commit 0ec32a3
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions pkgs/by-name/wa/wayfarer/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{ lib
, stdenv
, fetchFromGitHub
, blueprint-compiler
, desktop-file-utils
, gst_all_1
, gtk4
, libpulseaudio
, meson
, ninja
, pkg-config
, vala
, wrapGAppsHook4
}:

stdenv.mkDerivation (finalAttrs: {
pname = "wayfarer";
version = "1.2.4";

src = fetchFromGitHub {
owner = "stronnag";
repo = "wayfarer";
rev = finalAttrs.version;
hash = "sha256-Vuiy2SjpK2T1ekbwa/KyIFa1V4BJsnJRIj4b+Yx0VEw=";
};

postPatch = ''
patchShebangs src/getinfo.sh
# OS release information is not available in the sandbox
substituteInPlace meson/baseinfo.py \
--replace-warn 'platform.freedesktop_os_release()["NAME"]' '"NixOS"'
'';

nativeBuildInputs = [
blueprint-compiler
desktop-file-utils
meson
ninja
pkg-config
vala
wrapGAppsHook4
];

buildInputs = [
gst_all_1.gstreamer
gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-ugly
gtk4
libpulseaudio
];

meta = with lib; {
description = "Screen recorder for GNOME / Wayland / pipewire";
homepage = "https://github.com/stronnag/wayfarer";
license = licenses.gpl3Only;
maintainers = with maintainers; [ fgaz ];
mainProgram = "wayfarer";
platforms = platforms.all;
};
})

0 comments on commit 0ec32a3

Please sign in to comment.