593e11fd94
According to https://repology.org/repository/nix_unstable/problems, we have a lot of packages that have http links that redirect to https as their homepage. This commit updates all these packages to use the https links as their homepage. The following script was used to make these updates: ``` curl https://repology.org/api/v1/repository/nix_unstable/problems \ | jq '.[] | .problem' -r \ | rg 'Homepage link "(.+)" is a permanent redirect to "(.+)" and should be updated' --replace 's@$1@$2@' \ | sort | uniq > script.sed find -name '*.nix' | xargs -P4 -- sed -f script.sed -i ```
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ stdenv, mkDerivation, fetchurl, alsaLib, ffmpeg, 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 libjack2 libX11 libXext libXfixes libGLU libGL
|
|
libpulseaudio qtbase qtx11extras
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A screen recorder for Linux";
|
|
homepage = https://www.maartenbaert.be/simplescreenrecorder;
|
|
license = licenses.gpl3;
|
|
platforms = [ "x86_64-linux" ];
|
|
maintainers = [ maintainers.goibhniu ];
|
|
};
|
|
}
|