4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{ lib, stdenv, mkDerivation, fetchurl, alsaLib, ffmpeg_3, libjack2, libX11, libXext, qtx11extras
|
|
, libXfixes, libGLU, libGL, pkgconfig, libpulseaudio, qtbase, cmake, ninja
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "simplescreenrecorder";
|
|
version = "0.3.11";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/MaartenBaert/ssr/archive/${version}.tar.gz";
|
|
sha256 = "0l6irdadqpajvv0dj3ngs1231n559l0y1pykhs2h7526qm4w7xal";
|
|
};
|
|
|
|
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 = [ pkgconfig cmake ninja ];
|
|
buildInputs = [
|
|
alsaLib ffmpeg_3 libjack2 libX11 libXext libXfixes libGLU libGL
|
|
libpulseaudio qtbase qtx11extras
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A screen recorder for Linux";
|
|
homepage = "https://www.maartenbaert.be/simplescreenrecorder";
|
|
license = licenses.gpl3;
|
|
platforms = [ "x86_64-linux" ];
|
|
maintainers = [ maintainers.goibhniu ];
|
|
};
|
|
}
|