mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
wayfarer: init at 1.2.4
This commit is contained in:
parent
122959e6f9
commit
2f318100a6
64
pkgs/by-name/wa/wayfarer/package.nix
Normal file
64
pkgs/by-name/wa/wayfarer/package.nix
Normal file
@ -0,0 +1,64 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, blueprint-compiler
|
||||
, desktop-file-utils
|
||||
, gst_all_1
|
||||
, gtk4
|
||||
, libpulseaudio
|
||||
, meson
|
||||
, ninja
|
||||
, pipewire
|
||||
, 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
|
||||
pipewire
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Screen recorder for GNOME / Wayland / pipewire";
|
||||
homepage = "https://github.com/stronnag/wayfarer";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ fgaz ];
|
||||
mainProgram = "wayfarer";
|
||||
platforms = subtractLists platforms.darwin platforms.unix;
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user