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
41
pkgs/applications/video/simplescreenrecorder/default.nix
Normal file
41
pkgs/applications/video/simplescreenrecorder/default.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{ lib, stdenv, mkDerivation, fetchFromGitHub, alsa-lib, ffmpeg, libjack2, libX11, libXext, libXinerama, qtx11extras
|
||||
, libXfixes, libGLU, libGL, pkg-config, libpulseaudio, libv4l, qtbase, qttools, cmake, ninja
|
||||
}:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "simplescreenrecorder";
|
||||
version = "0.4.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "MaartenBaert";
|
||||
repo = "ssr";
|
||||
rev = version;
|
||||
sha256 = "0mrx8wprs8bi42fwwvk6rh634ic9jnn0gkfpd6q9pcawnnbz3vq8";
|
||||
};
|
||||
|
||||
cmakeFlags = [ "-DWITH_QT5=TRUE" ];
|
||||
|
||||
patches = [ ./fix-paths.patch ];
|
||||
|
||||
postPatch = ''
|
||||
for i in scripts/ssr-glinject src/AV/Input/GLInjectInput.cpp; do
|
||||
substituteInPlace $i \
|
||||
--subst-var out \
|
||||
--subst-var-by sh ${stdenv.shell}
|
||||
done
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pkg-config cmake ninja ];
|
||||
buildInputs = [
|
||||
alsa-lib ffmpeg libjack2 libX11 libXext libXfixes libXinerama libGLU libGL
|
||||
libpulseaudio libv4l qtbase qttools qtx11extras
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A screen recorder for Linux";
|
||||
homepage = "https://www.maartenbaert.be/simplescreenrecorder";
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = [ "x86_64-linux" ];
|
||||
maintainers = [ maintainers.goibhniu ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue