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 Dec 19, 2024
2 parents 5ad9d6d + 5e0d4f3 commit e048768
Show file tree
Hide file tree
Showing 56 changed files with 1,009 additions and 137 deletions.
16 changes: 16 additions & 0 deletions pkgs/applications/editors/vscode/extensions/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5202,6 +5202,22 @@ let
};
};

visualstudiotoolsforunity.vstuc = buildVscodeMarketplaceExtension {
mktplcRef = {
name = "vstuc";
publisher = "VisualStudioToolsForUnity";
version = "1.0.4";
hash = "sha256-LkLdXbXW91wMmaXpnRxSpff/zHCOE74nPP3aS0Ig3Gc=";
};
meta = {
description = "Integrates Visual Studio Code for Unity";
downloadPage = "https://marketplace.visualstudio.com/items?itemName=visualstudiotoolsforunity.vstuc";
homepage = "https://github.com/MicrosoftDocs/vscode-dotnettools";
license = lib.licenses.unfree;
maintainers = [ lib.maintainers.mib ];
};
};

vitaliymaz.vscode-svg-previewer = buildVscodeMarketplaceExtension {
mktplcRef = {
name = "vscode-svg-previewer";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ vscode-utils.buildVscodeMarketplaceExtension {
mktplcRef = {
name = "mongodb-vscode";
publisher = "mongodb";
version = "1.10.0";
hash = "sha256-5U1wHrcDqN5gJEFGvRDlBm7fu4LoP0/u0ykcqYhD1nQ=";
version = "1.11.0";
hash = "sha256-JlAfoYLFja60zNmNS0T8YK6WUrw/oOq/uurP48ad9bY=";
};

meta = {
Expand Down
5 changes: 5 additions & 0 deletions pkgs/applications/graphics/ImageMagick/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,13 @@ stdenv.mkDerivation (finalAttrs: {

postInstall = ''
(cd "$dev/include" && ln -s ImageMagick* ImageMagick)
# Q16HDRI = 16 bit quantum depth with HDRI support, and is the default ImageMagick configuration
# If the default is changed, or the derivation is modified to use a different configuration
# this will need to be changed below.
moveToOutput "bin/*-config" "$dev"
moveToOutput "lib/ImageMagick-*/config-Q16HDRI" "$dev" # includes configure params
configDestination=($out/share/ImageMagick-*)
grep -v '/nix/store' $dev/lib/ImageMagick-*/config-Q16HDRI/configure.xml > $configDestination/configure.xml
for file in "$dev"/bin/*-config; do
substituteInPlace "$file" --replace pkg-config \
"PKG_CONFIG_PATH='$dev/lib/pkgconfig' '$(command -v $PKG_CONFIG)'"
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/networking/dropbox/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ buildFHSEnv {
unsharePid = false;

targetPkgs = pkgs: with pkgs; with xorg; [
libICE libSM libX11 libXcomposite libXdamage libXext libXfixes libXrender
libICE libSM libX11 libXcomposite libXdamage libXext libXfixes libXrender libXmu
libXxf86vm libGL libxcb xkeyboardconfig
curl dbus firefox-bin fontconfig freetype gcc glib gnutar libxml2 libxslt
procps zlib libgbm libxshmfence libpthreadstubs libappindicator
Expand Down
5 changes: 4 additions & 1 deletion pkgs/applications/office/activitywatch/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ rec {
src = "${sources}/aw-qt";

pyproject = true;
build-system = [ python3Packages.poetry-core ];
build-system = [
python3Packages.poetry-core
python3Packages.setuptools
];

dependencies = with python3Packages; [
aw-core
Expand Down
6 changes: 4 additions & 2 deletions pkgs/applications/virtualization/qemu/binfmt-p-wrapper.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,20 @@
# The wrapper has to be static so LD_* environment variables
# cannot affect the execution of the wrapper itself.

{ lib, stdenv, pkgsStatic, enableDebug ? false }:
{ lib, stdenv, enableDebug ? false }:

name: emulator:

pkgsStatic.stdenv.mkDerivation {
stdenv.mkDerivation {
inherit name;

src = ./binfmt-p-wrapper.c;

dontUnpack = true;
dontInstall = true;

buildInputs = [ stdenv.cc.libc.static or null ];

buildPhase = ''
runHook preBuild
Expand Down
28 changes: 28 additions & 0 deletions pkgs/by-name/aw/aws-codeartifact-proxy/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
lib,
buildGoModule,
fetchFromGitHub,
}:

buildGoModule rec {
pname = "aws-codeartifact-proxy";
version = "0.5.1";

src = fetchFromGitHub {
owner = "sktan";
repo = "aws-codeartifact-proxy";
rev = "v${version}";
hash = "sha256-289iYPI8J64nRa0PTf47/FQAEqA+rTzalz6S71vFLzs=";
};
sourceRoot = "${src.name}/src";

vendorHash = "sha256-3MO+mRCstXw0FfySiyMSs1vaao7kUYIyJB2gAp1IE48=";

meta = {
description = "AWS CodeArtifact proxy to allow unauthenticated read access";
homepage = "https://github.com/sktan/aws-codeartifact-proxy";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ lafrenierejm ];
mainProgram = "aws-codeartifact-proxy";
};
}
6 changes: 3 additions & 3 deletions pkgs/by-name/cl/clever-tools/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@
buildNpmPackage rec {
pname = "clever-tools";

version = "3.10.1";
version = "3.11.0";

nodejs = nodejs_18;

src = fetchFromGitHub {
owner = "CleverCloud";
repo = "clever-tools";
rev = version;
hash = "sha256-dMSVw3buj0m2Ixir8rVeCg0PAVqXFBsBEohKfLsYhaI=";
hash = "sha256-3u96bPdXGArvNZPs12uF48zR/15AQNNHXyUWnMgxMmI=";
};

npmDepsHash = "sha256-v0nCYRfmcGbePI838Yhb+XvpN4JItQn2D+AHyNoeZLw=";
npmDepsHash = "sha256-zmhGpsRoMHgsq/XKOMGNIgxxsiMju9bG//Qd72HrMSE=";

nativeBuildInputs = [
installShellFiles
Expand Down
4 changes: 2 additions & 2 deletions pkgs/by-name/cl/clj-kondo/package.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
lib,
buildGraalvmNativeImage,
graalvmCEPackages,
graalvmPackages,
fetchurl,
}:

Expand All @@ -14,7 +14,7 @@ buildGraalvmNativeImage rec {
sha256 = "sha256-/pzRKx6fqcbVwp+Eif3a1mh/awmwhhLVtFldRYibp/g=";
};

graalvmDrv = graalvmCEPackages.graalvm-ce;
graalvmDrv = graalvmPackages.graalvm-ce;

extraNativeImageBuildArgs = [
"-H:+ReportExceptionStackTraces"
Expand Down
10 changes: 5 additions & 5 deletions pkgs/by-name/co/cosmic-launcher/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@

rustPlatform.buildRustPackage rec {
pname = "cosmic-launcher";
version = "1.0.0-alpha.1";
version = "1.0.0-alpha.4";

src = fetchFromGitHub {
owner = "pop-os";
repo = pname;
repo = "cosmic-launcher";
rev = "epoch-${version}";
hash = "sha256-LzTVtXyNgaVKyARmrmb6YUi4dWa20EwM1SYMlnawtzk=";
hash = "sha256-rx2FrRSiW5UQLEUtNbQ5JEoTR9djQEtY3eOxR2IqkU4=";
};

useFetchCargoVendor = true;
cargoHash = "sha256-bHJUsXHnPH6aV2vTQv1Cdx+p4/Pplg6HMguw5BK9qJ8=";
cargoHash = "sha256-gvrqomChaMv3u1pVUoGUkXw66Gr2wjkxNQIbrcbJrdY=";

nativeBuildInputs = [
just
Expand All @@ -52,7 +52,7 @@ rustPlatform.buildRustPackage rec {
];

postPatch = ''
substituteInPlace justfile --replace '#!/usr/bin/env' "#!$(command -v env)"
substituteInPlace justfile --replace-fail '#!/usr/bin/env' "#!$(command -v env)"
'';

postInstall = ''
Expand Down
4 changes: 2 additions & 2 deletions pkgs/by-name/cp/cppcheck/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

stdenv.mkDerivation (finalAttrs: {
pname = "cppcheck";
version = "2.16.0";
version = "2.16.1";

outputs = [
"out"
Expand All @@ -26,7 +26,7 @@ stdenv.mkDerivation (finalAttrs: {
owner = "danmar";
repo = "cppcheck";
rev = finalAttrs.version;
hash = "sha256-u+/rlQksCyNjLOkLHiRfLKWfVSEU+LerYuT6lAp/Wrs=";
hash = "sha256-rx/JtpNPo8uDr4MR6h0ANK0erK8oMhlJp+4BQtc/poc=";
};

nativeBuildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/by-name/cq/cq/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
fetchFromGitHub,
fetchurl,
buildGraalvmNativeImage,
graalvmCEPackages,
graalvmPackages,
}:

buildGraalvmNativeImage rec {
Expand All @@ -24,7 +24,7 @@ buildGraalvmNativeImage rec {
hash = "sha256-yjAC2obipdmh+JlHzVUTMtTXN2VKe4WKkyJyu2Q93c8=";
};

graalvmDrv = graalvmCEPackages.graalvm-ce;
graalvmDrv = graalvmPackages.graalvm-ce;

executable = "cq";

Expand Down
59 changes: 59 additions & 0 deletions pkgs/by-name/di/discordchatexporter-desktop/deps.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 47 additions & 0 deletions pkgs/by-name/di/discordchatexporter-desktop/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
lib,
buildDotnetModule,
dotnetCorePackages,
fetchFromGitHub,
testers,
discordchatexporter-desktop,
}:

buildDotnetModule rec {
pname = "discordchatexporter-desktop";
version = "2.44";

src = fetchFromGitHub {
owner = "tyrrrz";
repo = "discordchatexporter";
rev = version;
hash = "sha256-eLwSodbEux8pYXNZZg8c2rCYowTEkvPzYbxANYe0O7w=";
};

env.XDG_CONFIG_HOME = "$HOME/.config";

projectFile = "DiscordChatExporter.Gui/DiscordChatExporter.Gui.csproj";
nugetDeps = ./deps.nix;
dotnet-sdk = dotnetCorePackages.sdk_9_0;
dotnet-runtime = dotnetCorePackages.runtime_9_0;

patches = [ ./settings-path.patch ];

postFixup = ''
ln -s $out/bin/DiscordChatExporter $out/bin/discordchatexporter
'';

passthru = {
updateScript = ./updater.sh;
};

meta = with lib; {
description = "Tool to export Discord chat logs to a file (GUI version)";
homepage = "https://github.com/Tyrrrz/DiscordChatExporter";
license = licenses.gpl3Plus;
changelog = "https://github.com/Tyrrrz/DiscordChatExporter/blob/${version}/Changelog.md";
maintainers = with maintainers; [ kekschen ];
platforms = [ "x86_64-linux" ];
mainProgram = "discordchatexporter";
};
}
19 changes: 19 additions & 0 deletions pkgs/by-name/di/discordchatexporter-desktop/settings-path.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
diff --git a/DiscordChatExporter.Gui/Services/SettingsService.cs b/DiscordChatExporter.Gui/Services/SettingsService.cs
index 4f69969..80a8d4b 100644
--- a/DiscordChatExporter.Gui/Services/SettingsService.cs
+++ b/DiscordChatExporter.Gui/Services/SettingsService.cs
@@ -14,7 +14,13 @@ namespace DiscordChatExporter.Gui.Services;
[INotifyPropertyChanged]
public partial class SettingsService()
: SettingsBase(
- Path.Combine(AppContext.BaseDirectory, "Settings.dat"),
+ Path.Combine(
+ System.IO.Path.Combine(
+ Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
+ "discordchatexporter"
+ ),
+ "Settings.dat"
+ ),
SerializerContext.Default
)
{
15 changes: 15 additions & 0 deletions pkgs/by-name/di/discordchatexporter-desktop/updater.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env nix-shell
#!nix-shell -I nixpkgs=./. -i bash -p curl jq common-updater-scripts
set -eo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"

new_version="$(curl -s ${GITHUB_TOKEN:+-u ":$GITHUB_TOKEN"} "https://api.github.com/repos/tyrrrz/DiscordChatExporter/releases?per_page=1" | jq -r '.[0].name')"
old_version="$(sed -nE 's/\s*version = "(.*)".*/\1/p' ./package.nix)"
if [[ "$new_version" == "$old_version" ]]; then
echo "Up to date"
exit 0
fi

cd ../../../..
update-source-version discordchatexporter-desktop "$new_version"
$(nix-build -A discordchatexporter-desktop.fetch-deps --no-out-link)
Loading

0 comments on commit e048768

Please sign in to comment.