uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
65
pkgs/applications/video/kazam/default.nix
Normal file
65
pkgs/applications/video/kazam/default.nix
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, substituteAll
|
||||
, python3Packages
|
||||
, gst_all_1
|
||||
, wrapGAppsHook
|
||||
, gobject-introspection
|
||||
, gtk3
|
||||
, libwnck
|
||||
, keybinder3
|
||||
, intltool
|
||||
, libcanberra-gtk3
|
||||
, libappindicator-gtk3
|
||||
, libpulseaudio
|
||||
, libgudev
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "kazam";
|
||||
version = "unstable-2021-06-22";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "niknah";
|
||||
repo = "kazam";
|
||||
rev = "13f6ce124e5234348f56358b9134a87121f3438c";
|
||||
sha256 = "1jk6khwgdv3nmagdgp5ivz3156pl0ljhf7b6i4b52w1h5ywsg9ah";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ gobject-introspection python3Packages.distutils_extra intltool wrapGAppsHook ];
|
||||
buildInputs = [
|
||||
gst_all_1.gstreamer
|
||||
gst_all_1.gst-plugins-base
|
||||
gst_all_1.gst-plugins-good
|
||||
gtk3
|
||||
libwnck
|
||||
keybinder3
|
||||
libappindicator-gtk3
|
||||
libgudev
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [ pygobject3 pyxdg pycairo dbus-python xlib ];
|
||||
|
||||
# workaround https://github.com/NixOS/nixpkgs/issues/56943
|
||||
strictDeps = false;
|
||||
|
||||
patches = [
|
||||
# Fix paths
|
||||
(substituteAll {
|
||||
src = ./fix-paths.patch;
|
||||
libcanberra = libcanberra-gtk3;
|
||||
inherit libpulseaudio;
|
||||
})
|
||||
];
|
||||
|
||||
# no tests
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A screencasting program created with design in mind";
|
||||
homepage = "https://github.com/niknah/kazam";
|
||||
license = licenses.lgpl3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.domenkozar ];
|
||||
};
|
||||
}
|
||||
22
pkgs/applications/video/kazam/fix-paths.patch
Normal file
22
pkgs/applications/video/kazam/fix-paths.patch
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
--- a/kazam/backend/grabber.py
|
||||
+++ b/kazam/backend/grabber.py
|
||||
@@ -72,7 +72,7 @@
|
||||
#
|
||||
if prefs.shutter_sound and (not self.god):
|
||||
soundfile = os.path.join(prefs.datadir, 'sounds', prefs.sound_files[prefs.shutter_type])
|
||||
- subprocess.call(['/usr/bin/canberra-gtk-play', '-f', soundfile])
|
||||
+ subprocess.call(['@libcanberra@/bin/canberra-gtk-play', '-f', soundfile])
|
||||
|
||||
if self.xid:
|
||||
if prefs.capture_borders_pic:
|
||||
--- a/kazam/pulseaudio/ctypes_pulseaudio.py
|
||||
+++ b/kazam/pulseaudio/ctypes_pulseaudio.py
|
||||
@@ -20,7 +20,7 @@
|
||||
# MA 02110-1301, USA.
|
||||
|
||||
from ctypes import *
|
||||
-PA = CDLL('libpulse.so.0')
|
||||
+PA = CDLL('@libpulseaudio@/lib/libpulse.so.0')
|
||||
|
||||
#
|
||||
# Pulse Audio constants and defines
|
||||
Loading…
Add table
Add a link
Reference in a new issue