Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into staging-next
Browse files Browse the repository at this point in the history
  • Loading branch information
K900 committed Oct 30, 2024
2 parents 66be95c + 05e3b3d commit 6968567
Show file tree
Hide file tree
Showing 56 changed files with 817 additions and 428 deletions.
3 changes: 1 addition & 2 deletions nixos/modules/services/web-apps/peertube.nix
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,6 @@ in {
path = with pkgs; [ nodejs_18 yarn ffmpeg-headless openssl ];

script = ''
#!/bin/sh
umask 077
cat > /var/lib/peertube/config/local.yaml <<EOF
${lib.optionalString (cfg.secrets.secretsFile != null) ''
Expand All @@ -457,7 +456,7 @@ in {
ln -sf ${cfg.package}/config/default.yaml /var/lib/peertube/config/default.yaml
ln -sf ${cfg.package}/client/dist -T /var/lib/peertube/www/client
ln -sf ${cfg.settings.storage.client_overrides} -T /var/lib/peertube/www/client-overrides
node dist/server
exec node dist/server
'';
serviceConfig = {
Type = "simple";
Expand Down
20 changes: 5 additions & 15 deletions pkgs/applications/graphics/synfigstudio/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, pkg-config
, autoreconfHook
, wrapGAppsHook3
Expand Down Expand Up @@ -29,12 +28,12 @@
}:

let
version = "1.5.1";
version = "1.5.3";
src = fetchFromGitHub {
owner = "synfig";
repo = "synfig";
rev = "v${version}";
hash = "sha256-9vBYESaSgW/1FWH2uFBvPiYvxLlX0LLNnd4S7ACJcwI=";
hash = "sha256-D+FUEyzJ74l0USq3V9HIRAfgyJfRP372aEKDqF8+hsQ=";
};

ETL = stdenv.mkDerivation {
Expand All @@ -56,17 +55,6 @@ let
pname = "synfig";
inherit version src;

patches = [
# Pull upstream fix for autoconf-2.72 support:
# https://github.com/synfig/synfig/pull/2930
(fetchpatch {
name = "autoconf-2.72.patch";
url = "https://github.com/synfig/synfig/commit/80a3386c701049f597cf3642bb924d2ff832ae05.patch";
stripLen = 1;
hash = "sha256-7gX8tJCR81gw8ZDyNYa8UaeZFNOx4o1Lnq0cAcaKb2I=";
})
];

sourceRoot = "${src.name}/synfig-core";

configureFlags = [
Expand All @@ -78,6 +66,8 @@ let
"CXXFLAGS=-std=c++14"
];

enableParallelBuilding = true;

nativeBuildInputs = [
pkg-config
autoreconfHook
Expand Down Expand Up @@ -159,7 +149,7 @@ stdenv.mkDerivation {
meta = with lib; {
description = "2D animation program";
homepage = "http://www.synfig.org";
license = licenses.gpl2Plus;
license = licenses.gpl3Plus;
maintainers = [ ];
platforms = platforms.linux ++ platforms.darwin;
};
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/networking/cluster/aiac/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

buildGoModule rec {
pname = "aiac";
version = "5.2.1";
version = "5.3.0";
excludedPackages = [".ci"];

src = fetchFromGitHub {
owner = "gofireflyio";
repo = pname;
rev = "v${version}";
hash = "sha256-8LMuhUeH/KNOf3IPYMSwZDxeY8M7oDYF4Q7X7ImQSMw=";
hash = "sha256-Lk3Bmzg1owkIWzz7jgq1YpdPyRzyZ7aNoWPIU5aWzu0=";
};

vendorHash = "sha256-uXYin6JITpy3bc7FI/3aJqvCD9cGwGL1qjB8hBUWLQE=";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/networking/cluster/k0sctl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@

buildGoModule rec {
pname = "k0sctl";
version = "0.19.1";
version = "0.19.2";

src = fetchFromGitHub {
owner = "k0sproject";
repo = "k0sctl";
rev = "refs/tags/v${version}";
hash = "sha256-6mvSVbSTPFiAIDxNQUmgFmS+3v3RUh10Y552u9bHOn0=";
hash = "sha256-TdnZZ27j++o9I4Zup4PmM2VAHwn8BPBG/CwxTUy0BWU=";
};

vendorHash = "sha256-Hl/eSFbwFiuSaaPh5blWFfz6m4VNrS5mYL8ehQlb90I=";
Expand Down
33 changes: 33 additions & 0 deletions pkgs/applications/office/zotero/darwin.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
pname,
version,
meta,
stdenv,
fetchurl,
undmg,
}:

stdenv.mkDerivation rec {
inherit pname version meta;

src = fetchurl {
url = "https://download.zotero.org/client/release/${version}/Zotero-${version}.dmg";
hash = "sha256-z1HAkHz4JGRfQJna2cINZTmYPzyj9ofp7mJHN/mNyOo=";
};
sourceRoot = ".";

nativeBuildInputs = [ undmg ];

dontConfigure = true;
dontBuild = true;
dontFixup = true; # breaks notarization

installPhase = ''
runHook preInstall
mkdir -p $out/Applications
cp -r Zotero.app $out/Applications
runHook postInstall
'';
}
130 changes: 22 additions & 108 deletions pkgs/applications/office/zotero/default.nix
Original file line number Diff line number Diff line change
@@ -1,116 +1,30 @@
{ lib
, stdenv
, fetchurl
, wrapGAppsHook3
, makeDesktopItem
, alsa-lib
, atk
, cairo
, dbus-glib
, gdk-pixbuf
, glib
, gtk3
, libGL
, libva
, xorg
, mesa
, pango
, pciutils
{
lib,
stdenv,
callPackage,
}:

stdenv.mkDerivation rec {
let
pname = "zotero";
version = "7.0.8";

src = fetchurl {
url = "https://download.zotero.org/client/release/${version}/Zotero-${version}_linux-x86_64.tar.bz2";
hash = "sha256-utiqS4/PvlkQesqTOyEvj8uwW1sDxlqjnhv6GFfY5uk=";
};

dontPatchELF = true;
nativeBuildInputs = [ wrapGAppsHook3 ];

libPath = lib.makeLibraryPath [
alsa-lib
atk
cairo
dbus-glib
gdk-pixbuf
glib
gtk3
libGL
libva
xorg.libX11
xorg.libXcomposite
xorg.libXcursor
xorg.libXdamage
xorg.libXext
xorg.libXfixes
xorg.libXi
xorg.libXrandr
xorg.libXtst
xorg.libxcb
mesa
pango
pciutils
] + ":" + lib.makeSearchPathOutput "lib" "lib64" [ stdenv.cc.cc ];

desktopItem = makeDesktopItem {
name = "zotero";
exec = "zotero -url %U";
icon = "zotero";
comment = meta.description;
desktopName = "Zotero";
genericName = "Reference Management";
categories = [ "Office" "Database" ];
startupNotify = true;
mimeTypes = [ "x-scheme-handler/zotero" "text/plain" ];
};

installPhase = ''
runHook preInstall
# Copy package contents to the output directory
mkdir -p "$prefix/usr/lib/zotero-bin-${version}"
cp -r * "$prefix/usr/lib/zotero-bin-${version}"
mkdir -p "$out/bin"
ln -s "$prefix/usr/lib/zotero-bin-${version}/zotero" "$out/bin/"
# Install desktop file and icons
mkdir -p $out/share/applications
cp ${desktopItem}/share/applications/* $out/share/applications/
for size in 32 64 128; do
install -Dm444 icons/icon''${size}.png \
$out/share/icons/hicolor/''${size}x''${size}/apps/zotero.png
done
install -Dm444 icons/symbolic.svg \
$out/share/icons/hicolor/symbolic/apps/zotero-symbolic.svg
runHook postInstall
'';

postFixup = ''
for executable in \
zotero-bin plugin-container updater vaapitest \
minidump-analyzer glxtest
do
if [ -e "$out/usr/lib/zotero-bin-${version}/$executable" ]; then
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
"$out/usr/lib/zotero-bin-${version}/$executable"
fi
done
find . -executable -type f -exec \
patchelf --set-rpath "$libPath" \
"$out/usr/lib/zotero-bin-${version}/{}" \;
'';

meta = with lib; {
meta = {
homepage = "https://www.zotero.org";
description = "Collect, organize, cite, and share your research sources";
mainProgram = "zotero";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
license = licenses.agpl3Only;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ atila justanotherariel ];
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
license = lib.licenses.agpl3Only;
platforms = [
"x86_64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
maintainers = with lib.maintainers; [
atila
justanotherariel
];
};
}
in
if stdenv.hostPlatform.isDarwin then
callPackage ./darwin.nix { inherit pname version meta; }
else
callPackage ./linux.nix { inherit pname version meta; }
Loading

0 comments on commit 6968567

Please sign in to comment.