Merge master into staging-next

This commit is contained in:
github-actions[bot]
2024-05-14 06:01:02 +00:00
committed by GitHub
53 changed files with 763 additions and 133 deletions
@@ -1,16 +1,31 @@
{ stdenv, lib, fetchFromGitHub }:
{
stdenv,
lib,
fetchFromGitHub,
}:
stdenv.mkDerivation rec {
pname = "miniscript";
version = "unstable-2022-07-19";
version = "unstable-2023-03-16";
src = fetchFromGitHub {
owner = "sipa";
repo = pname;
rev = "ca675488c4aa9605f6ae70c0e68a148a6fb277b4";
sha256 = "sha256-kzLIJ0os6UnC0RPEybfw6wGrZpgmRCgj3zifmZjieoU=";
rev = "6806dfb15a1fafabf7dd28aae3c9d2bc49db01f1";
sha256 = "sha256-qkYDzsl2Y4WEDDXs9cE/jIXm01jclkYUQbDGe1S0wYs=";
};
postPatch = lib.optionalString stdenv.isDarwin ''
# Replace hardcoded g++ with c++ so clang can be used
# on darwin
#
# lto must be disabled on darwin as well due to
# https://github.com/NixOS/nixpkgs/issues/19098
substituteInPlace Makefile \
--replace-fail 'g++' 'c++' \
--replace-fail '-flto' ""
'';
installPhase = ''
runHook preInstall
mkdir -p $out/bin
@@ -19,12 +34,14 @@ stdenv.mkDerivation rec {
'';
meta = with lib; {
description = "Compiler and inspector for the miniscript Bitcoin policy language";
description = "Compiler and inspector for the miniscript Bitcoin policy language";
longDescription = "Miniscript is a language for writing (a subset of) Bitcoin Scripts in a structured way, enabling analysis, composition, generic signing and more.";
homepage = "https://bitcoin.sipa.be/miniscript/";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ RaghavSood jb55 ];
homepage = "https://bitcoin.sipa.be/miniscript/";
license = licenses.mit;
maintainers = with maintainers; [
RaghavSood
jb55
];
mainProgram = "miniscript";
};
}
@@ -25,11 +25,11 @@ let
in
stdenv.mkDerivation rec {
pname = "wasabiwallet";
version = "2.0.7.1";
version = "2.0.7.2";
src = fetchurl {
url = "https://github.com/zkSNACKs/WalletWasabi/releases/download/v${version}/Wasabi-${version}.tar.gz";
sha256 = "sha256-u/QDdGLdD5+8j3r8pZQwcG3iTToFJEvzzV7Rl4ggvtM=";
sha256 = "sha256-s/rzjlPsOylbuQx7gDnctvl1tms95RqErk0vVlzhouw=";
};
dontBuild = true;
@@ -0,0 +1,10 @@
{
traefik-crd = {
url = "https://k3s.io/k3s-charts/assets/traefik-crd/traefik-crd-25.0.3+up25.0.0.tgz";
sha256 = "1z693i4kd3jyf26ccnb0sxjyxadipl6k13n7jyg5v4y93fv1rpdw";
};
traefik = {
url = "https://k3s.io/k3s-charts/assets/traefik/traefik-25.0.3+up25.0.0.tgz";
sha256 = "1a24qlp7c6iri72ka1i37l1lzn13xibrd26dy295z2wzr55gg7if";
};
}
@@ -0,0 +1,14 @@
{
k3sVersion = "1.30.0+k3s1";
k3sCommit = "14549535f13c63fc239ba055d36d590e68b01503";
k3sRepoSha256 = "1dph6clzzanlx7dbdzpamnw7gpw98j850my28lcb3zdzhvhsc74b";
k3sVendorHash = "sha256-YBWiIf8F71ibR7sCiYtmsAcY1MsvkhTD/K45tOHQC5w=";
chartVersions = import ./chart-versions.nix;
k3sRootVersion = "0.13.0";
k3sRootSha256 = "1jq5f0lm08abx5ikarf92z56fvx4kjpy2nmzaazblb34lajw87vj";
k3sCNIVersion = "1.4.0-k3s2";
k3sCNISha256 = "17dg6jgjx18nrlyfmkv14dhzxsljz4774zgwz5dchxcf38bvarqa";
containerdVersion = "1.7.15-k3s1";
containerdSha256 = "18hlj4ixjk7wvamfd66xyc0cax2hs9s7yjvlx52afxdc73194y0f";
criCtlVersion = "1.29.0-k3s1";
}
@@ -54,4 +54,15 @@ in
];
}
) extraArgs;
# 1_30 can be built with the same builder as 1_26
k3s_1_30 = common (
(import ./1_30/versions.nix)
// {
updateScript = [
./update-script.sh
"30"
];
}
) extraArgs;
}
@@ -2,11 +2,11 @@
let
pname = "alt-ergo";
version = "2.5.3";
version = "2.5.4";
src = fetchurl {
url = "https://github.com/OCamlPro/alt-ergo/releases/download/v${version}/alt-ergo-${version}.tbz";
hash = "sha256-tmWLZBLfdmfYlCQq+zcUneeueDAE6AJeZMy8kfNCC04=";
hash = "sha256-AsHok5i62vqJ5hK8XRiD8hM6JQaFv3dMxZAcVYEim6w=";
};
in
@@ -2,16 +2,16 @@
buildGoModule rec {
pname = "gh";
version = "2.49.1";
version = "2.49.2";
src = fetchFromGitHub {
owner = "cli";
repo = "cli";
rev = "v${version}";
hash = "sha256-9Qr1goFmHV4rNEB849dF9+qEEMOWanCyAcNpXwuQxOo=";
hash = "sha256-RevdHBF/7etEstUhsTO9KVK45KTiJnhAhAZAamuEUwk=";
};
vendorHash = "sha256-FztCYs6db6f3niAru/vPpcze84nqwzspoJsdqmdkJmk=";
vendorHash = "sha256-9Rv1zPrtaxd00lbA3WrPIzIZ9IiKqZa/ppn37jqMP4M=";
nativeBuildInputs = [ installShellFiles ];
@@ -2,6 +2,7 @@
lib,
stdenvNoCC,
fetchFromGitHub,
unstableGitUpdater,
}:
stdenvNoCC.mkDerivation {
@@ -26,6 +27,10 @@ stdenvNoCC.mkDerivation {
runHook postInstall
'';
passthru.updateScript = unstableGitUpdater {
hardcodeZeroVersion = true;
};
meta = {
homepage = "https://github.com/CachyOS/ananicy-rules";
description = "CachyOS' ananicy-rules meant to be used with ananicy-cpp";
+2 -2
View File
@@ -5,11 +5,11 @@
let
pname = "codux";
version = "15.25.1";
version = "15.26.0";
src = fetchurl {
url = "https://github.com/wixplosives/codux-versions/releases/download/${version}/Codux-${version}.x86_64.AppImage";
sha256 = "sha256-MdA/NAlIRyKJNiqYvoxACc+WgS0ZAt+tbqaQRzTT/Xc=";
sha256 = "sha256-jja9WYfirltjBdJNCQONowVjMTg0aj265Sjq57qSjbc=";
};
appimageContents = appimageTools.extractType2 { inherit pname version src; };
+2 -2
View File
@@ -11,13 +11,13 @@
buildGoModule rec {
pname = "fzf";
version = "0.52.0";
version = "0.52.1";
src = fetchFromGitHub {
owner = "junegunn";
repo = "fzf";
rev = version;
hash = "sha256-RchZ798pUwQy8reHeJYrk4P09KVUwhVaDArvtpGV/1Q=";
hash = "sha256-cnLPn1AKq1BaWwXsWwQfC/lnejdyd1WdH1qIJRcfdks=";
};
vendorHash = "sha256-Kc/bYzakx9c/bF42LYyE1t8JCUqBsJQFtczrFocx/Ps=";
+3 -3
View File
@@ -6,16 +6,16 @@
buildNpmPackage rec {
pname = "gitlab-ci-local";
version = "4.48.2";
version = "4.49.0";
src = fetchFromGitHub {
owner = "firecow";
repo = "gitlab-ci-local";
rev = version;
hash = "sha256-QdbVI6aby/UQCR3G25nvmvoXNMDndgLYz/hOTmj5dnc=";
hash = "sha256-hhzkC9wnPNwQwky2FegTMRIbcyCMzrZ/hoQlfZwk3sk=";
};
npmDepsHash = "sha256-ebrdMbSAsughHCuV86s6WA12a8hqA2yyC/rJUyViOrI=";
npmDepsHash = "sha256-mnnP1YvKSm/CgZYQWF8VU+cuQ0SUV5tW1dCRrGRBrmg=";
postPatch = ''
# remove cleanup which runs git commands
+12 -1
View File
@@ -1,4 +1,4 @@
{ lib, stdenv, patchelf, makeWrapper, fetchurl
{ lib, stdenv, patchelf, makeWrapper, fetchurl, writeScript
# Linked dynamic libraries.
, glib, fontconfig, freetype, pango, cairo, libX11, libXi, atk, nss, nspr
@@ -142,6 +142,17 @@ in stdenv.mkDerivation (finalAttrs: {
runHook postInstall
'';
passthru = {
updateScript = writeScript "update-google-chrome.sh" ''
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq common-updater-scripts
url="https://versionhistory.googleapis.com/v1/chrome/platforms/linux/channels/stable/versions/all/releases"
response=$(curl --silent $url)
version=$(jq ".releases[0].version" --raw-output <<< "$response")
update-source-version ${finalAttrs.pname} "$version" --ignore-same-hash
'';
};
meta = {
description = "A freeware web browser developed by Google";
homepage = "https://www.google.com/chrome/browser/";
+3
View File
@@ -2,6 +2,7 @@
, stdenv
, rustPlatform
, fetchFromGitHub
, nix-update-script
}:
rustPlatform.buildRustPackage rec {
@@ -37,6 +38,8 @@ rustPlatform.buildRustPackage rec {
"--lib"
];
passthru.updateScript = nix-update-script {};
meta = with lib; {
description = "Extremely fast CSS parser, transformer, and minifier written in Rust";
homepage = "https://lightningcss.dev/";
+3 -3
View File
@@ -23,13 +23,13 @@ let
in
stdenv.mkDerivation (finalAttrs: {
pname = "melonDS";
version = "0.9.5-unstable-2024-05-05";
version = "0.9.5-unstable-2024-05-13";
src = fetchFromGitHub {
owner = "melonDS-emu";
repo = "melonDS";
rev = "10798c3464ca0e199087960fda918ed99acc2e21";
hash = "sha256-5GbJKhICrbVfnfZt6Ni4uNbodH3rJY5lKoQRgiPXWCg=";
rev = "5df83c97c766bff3da8ba5a1504a6a5974467133";
hash = "sha256-Fo+HtTvkfrHU361ccH9zPifRoR6tNcw9gKIaExKEQh4=";
};
nativeBuildInputs = [
+3 -3
View File
@@ -5,16 +5,16 @@
php.buildComposerProject (finalAttrs: {
pname = "phel";
version = "0.12.0";
version = "0.13.0";
src = fetchFromGitHub {
owner = "phel-lang";
repo = "phel-lang";
rev = "v${finalAttrs.version}";
hash = "sha256-5PMd87Xp7i3Q1ryKQWJBmNbU5TGo2LQ6uvIFP3T36vk=";
hash = "sha256-EITeApaQ1nmQb53/DrSidcmWUACapjTUuUYuJQDML0Y=";
};
vendorHash = "sha256-83GX/dxHa6w1E34wnJshg7yxlVyRkDT5jmAPCCqPdtA=";
vendorHash = "sha256-IWFOpsPcrPg2/QWemRJ8tP6k0sIc2OogETdiBFAQ5BI=";
doInstallCheck = true;
postInstallCheck = ''
+3
View File
@@ -2,6 +2,7 @@
lib,
fetchFromGitHub,
python3Packages,
nix-update-script,
}:
python3Packages.buildPythonApplication rec {
@@ -57,6 +58,8 @@ python3Packages.buildPythonApplication rec {
"pyprland.plugins.workspaces_follow_focus"
];
passthru.updateScript = nix-update-script {};
meta = {
mainProgram = "pypr";
description = "An hyperland plugin system";
@@ -1,6 +1,20 @@
{ lib, stdenv, fetchFromGitHub, python3, pkg-config, SDL2
, libpng, ffmpeg, freetype, glew, libGL, libGLU, fribidi, zlib
, makeWrapper
{
lib,
stdenv,
fetchFromGitHub,
python3,
pkg-config,
SDL2,
libpng,
ffmpeg,
freetype,
glew,
libGL,
libGLU,
fribidi,
zlib,
harfbuzz,
makeWrapper,
}:
let
@@ -8,42 +22,71 @@ let
# base_version is of the form major.minor.patch
# vc_version is of the form YYMMDDCC
# version corresponds to the tag on GitHub
base_version = "8.1.3";
vc_version = "23091805";
in stdenv.mkDerivation rec {
pname = "renpy";
base_version = "8.2.1";
vc_version = "24030407";
version = "${base_version}.${vc_version}";
in
stdenv.mkDerivation {
pname = "renpy";
inherit version;
src = fetchFromGitHub {
owner = "renpy";
repo = "renpy";
rev = version;
sha256 = "sha256-bYqnKSWY8EEGr1+12cWeT9/ZSv5OrKLsRqCnnIruDQw=";
hash = "sha256-07Hj8mJGR0+Pn1DQ+sK5YQ3x3CTMsZ5h5yEoz44b2TM=";
};
nativeBuildInputs = [
pkg-config
makeWrapper
python3.pkgs.cython
# Ren'Py currently does not compile on Cython 3.x.
# See https://github.com/renpy/renpy/issues/5359
python3.pkgs.cython_0
python3.pkgs.setuptools
];
buildInputs = [
SDL2 libpng ffmpeg freetype glew libGLU libGL fribidi zlib
] ++ (with python3.pkgs; [
python pygame-sdl2 tkinter future six pefile requests ecdsa
]);
buildInputs =
[
SDL2
libpng
ffmpeg
freetype
glew
libGLU
libGL
fribidi
zlib
harfbuzz
]
++ (with python3.pkgs; [
python
pygame-sdl2
tkinter
future
six
pefile
requests
ecdsa
]);
RENPY_DEPS_INSTALL = lib.concatStringsSep "::" (map (path: path) [
SDL2 SDL2.dev libpng ffmpeg.lib freetype glew.dev libGLU libGL fribidi zlib
]);
RENPY_DEPS_INSTALL = lib.concatStringsSep "::" [
SDL2
SDL2.dev
libpng
ffmpeg.lib
freetype
glew.dev
libGLU
libGL
fribidi
zlib
harfbuzz.dev
];
enableParallelBuilding = true;
patches = [
./shutup-erofs-errors.patch
];
patches = [ ./shutup-erofs-errors.patch ];
postPatch = ''
cp tutorial/game/tutorial_director.rpy{m,}
@@ -53,7 +96,7 @@ in stdenv.mkDerivation rec {
official = False
nightly = False
# Look at https://renpy.org/latest.html for what to put.
version_name = 'Where No One Has Gone Before'
version_name = '64bit Sensation'
EOF
'';
@@ -79,15 +122,17 @@ in stdenv.mkDerivation rec {
env.NIX_CFLAGS_COMPILE = with python3.pkgs; "-I${pygame-sdl2}/include/${python.libPrefix}";
meta = with lib; {
meta = {
description = "Visual Novel Engine";
mainProgram = "renpy";
homepage = "https://renpy.org/";
changelog = "https://renpy.org/doc/html/changelog.html";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ shadowrz ];
license = lib.licenses.mit;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ shadowrz ];
};
passthru = { inherit base_version vc_version; };
passthru = {
inherit base_version vc_version;
};
}
+4
View File
@@ -8,6 +8,10 @@
# This is an updater for unstable packages that should always use the latest
# commit.
# To use this updater, add the following to your package set:
# passthru.updateScript = unstableGitUpdater { };
# relevant attributes can be passed as below:
{ url ? null # The git url, if empty it will be set to src.gitRepoUrl
, branch ? null
, hardcodeZeroVersion ? false # Use a made-up version "0" instead of latest tag. Use when there is no previous release, or the project's tagging system is incompatible with what we expect from versions
+5
View File
@@ -23,6 +23,11 @@ let
image-editor = callPackage ./library/image-editor { };
udisks2-qt5 = callPackage ./library/udisks2-qt5 { };
util-dfm = callPackage ./library/util-dfm { };
dtk6core = callPackage ./library/dtk6core { };
dtk6gui = callPackage ./library/dtk6gui { };
dtk6widget = callPackage ./library/dtk6widget { };
dtk6declarative = callPackage ./library/dtk6declarative { };
dtk6systemsettings = callPackage ./library/dtk6systemsettings { };
#### CORE
deepin-kwin = callPackage ./core/deepin-kwin { };
@@ -0,0 +1,84 @@
{ stdenv
, lib
, fetchFromGitHub
, cmake
, pkg-config
, doxygen
, qt6Packages
, lshw
, libuchardet
, spdlog
, dtkcommon
, systemd
, withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd
}:
stdenv.mkDerivation (finalAttrs: {
pname = "dtk6core";
version = "6.0.15";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = "dtk6core";
rev = finalAttrs.version;
hash = "sha256-zUJFilafR0hNH/Owmuyh6BLBFPbBuFKcHv40fena0GM=";
};
patches = [
./fix-pkgconfig-path.patch
./fix-pri-path.patch
];
nativeBuildInputs = [
cmake
pkg-config
doxygen
qt6Packages.qttools
qt6Packages.wrapQtAppsHook
];
dontWrapQtApps = true;
buildInputs = [
qt6Packages.qtbase
lshw
libuchardet
spdlog
]
++ lib.optional withSystemd systemd;
propagatedBuildInputs = [ dtkcommon ];
cmakeFlags = [
"-DDTK_VERSION=${finalAttrs.version}"
"-DBUILD_DOCS=ON"
"-DBUILD_EXAMPLES=OFF"
"-DQCH_INSTALL_DESTINATION=${placeholder "doc"}/share/doc"
"-DDSG_PREFIX_PATH='/run/current-system/sw'"
"-DMKSPECS_INSTALL_DIR=${placeholder "out"}/mkspecs/modules"
"-DD_DSG_APP_DATA_FALLBACK=/var/dsg/appdata"
"-DBUILD_WITH_SYSTEMD=${if withSystemd then "ON" else "OFF"}"
];
preConfigure = ''
# qt.qpa.plugin: Could not find the Qt platform plugin "minimal"
# A workaround is to set QT_PLUGIN_PATH explicitly
export QT_PLUGIN_PATH=${lib.getBin qt6Packages.qtbase}/${qt6Packages.qtbase.qtPluginPrefix}
'';
outputs = [ "out" "dev" "doc" ];
postFixup = ''
for binary in $out/libexec/dtk6/DCore/bin/*; do
wrapQtApp $binary
done
'';
meta = {
description = "Deepin tool kit core library";
homepage = "https://github.com/linuxdeepin/dtk6core";
license = lib.licenses.lgpl3Plus;
platforms = lib.platforms.linux;
maintainers = lib.teams.deepin.members;
};
})
@@ -0,0 +1,14 @@
diff --git a/misc/dtkcore.pc.in b/misc/dtkcore.pc.in
index 83eecb7..da24ce8 100644
--- a/misc/dtkcore.pc.in
+++ b/misc/dtkcore.pc.in
@@ -1,7 +1,7 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
-libdir=${prefix}/@LIBRARY_INSTALL_DIR@
-includedir=${prefix}/@INCLUDE_INSTALL_DIR@
+libdir=@LIBRARY_INSTALL_DIR@
+includedir=@INCLUDE_INSTALL_DIR@
Name: dtk@DTK_VERSION_MAJOR@core
Description: Deepin Tool Kit dtkcore header files
@@ -0,0 +1,17 @@
diff --git a/misc/qt_lib_dtkcore.pri.in b/misc/qt_lib_dtkcore.pri.in
index a331f52..ce01dc0 100644
--- a/misc/qt_lib_dtkcore.pri.in
+++ b/misc/qt_lib_dtkcore.pri.in
@@ -4,9 +4,9 @@ QT.dtkcore.MINOR_VERSION = @PROJECT_VERSION_MINOR@
QT.dtkcore.PATCH_VERSION = @PROJECT_VERSION_PATCH@
QT.dtkcore.name = dtkcore
QT.dtkcore.module = dtk@DTK_VERSION_MAJOR@core
-QT.dtkcore.tools = @CMAKE_INSTALL_PREFIX@/@TOOL_INSTALL_DIR@
-QT.dtkcore.libs = @CMAKE_INSTALL_PREFIX@/@LIBRARY_INSTALL_DIR@
-QT.dtkcore.includes = @CMAKE_INSTALL_PREFIX@/@INCLUDE_INSTALL_DIR@
+QT.dtkcore.tools = @TOOL_INSTALL_DIR@
+QT.dtkcore.libs = @LIBRARY_INSTALL_DIR@
+QT.dtkcore.includes = @INCLUDE_INSTALL_DIR@
QT.dtkcore.frameworks =
QT.dtkcore.depends = core dbus xml
QT.dtkcore.module_config = v2 ltcg
@@ -0,0 +1,70 @@
{ stdenv
, lib
, fetchFromGitHub
, cmake
, pkg-config
, doxygen
, qt6Packages
, dtk6gui
}:
stdenv.mkDerivation (finalAttrs: {
pname = "dtk6declarative";
version = "6.0.15";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = "dtk6declarative";
rev = finalAttrs.version;
hash = "sha256-euHEfK2N2jtWMzeajgvTnHSl39zXwp7I0cQIqZRVGZ0=";
};
patches = [
./fix-pkgconfig-path.patch
./fix-pri-path.patch
];
nativeBuildInputs = [
cmake
pkg-config
doxygen
qt6Packages.qttools
qt6Packages.wrapQtAppsHook
];
propagatedBuildInputs = [
dtk6gui
] ++ (with qt6Packages ; [
qtbase
qtdeclarative
qtshadertools
qt5compat
]);
cmakeFlags = [
"-DDTK_VERSION=${finalAttrs.version}"
"-DBUILD_DOCS=ON"
"-DBUILD_EXAMPLES=ON"
"-DMKSPECS_INSTALL_DIR=${placeholder "dev"}/mkspecs/modules"
"-DQCH_INSTALL_DESTINATION=${placeholder "doc"}/share/doc"
"-DQML_INSTALL_DIR=${placeholder "out"}/${qt6Packages.qtbase.qtQmlPrefix}"
];
preConfigure = ''
# qt.qpa.plugin: Could not find the Qt platform plugin "minimal"
# A workaround is to set QT_PLUGIN_PATH explicitly
export QT_PLUGIN_PATH=${lib.getBin qt6Packages.qtbase}/${qt6Packages.qtbase.qtPluginPrefix}
export QML2_IMPORT_PATH=${lib.getBin qt6Packages.qtdeclarative}/${qt6Packages.qtbase.qtQmlPrefix}
'';
outputs = [ "out" "dev" "doc" ];
meta = {
description = "A widget development toolkit based on QtQuick/QtQml";
mainProgram = "dtk-exhibition";
homepage = "https://github.com/linuxdeepin/dtk6declarative";
license = lib.licenses.lgpl3Plus;
platforms = lib.platforms.linux;
maintainers = lib.teams.deepin.members;
};
})
@@ -0,0 +1,14 @@
diff --git a/misc/dtkdeclarative.pc.in b/misc/dtkdeclarative.pc.in
index dc3827f..fd0949e 100644
--- a/misc/dtkdeclarative.pc.in
+++ b/misc/dtkdeclarative.pc.in
@@ -1,7 +1,7 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
-libdir=${prefix}/@LIB_INSTALL_DIR@
-includedir=${prefix}/@INCLUDE_INSTALL_DIR@
+libdir=@LIB_INSTALL_DIR@
+includedir=@INCLUDE_INSTALL_DIR@
Name: DtkDeclarative
Description: Deepin Tool Kit DtkDeclarative header files
@@ -0,0 +1,15 @@
diff --git a/misc/qt_lib_dtkdeclarative.pri.in b/misc/qt_lib_dtkdeclarative.pri.in
index 8797802..44e32a3 100644
--- a/misc/qt_lib_dtkdeclarative.pri.in
+++ b/misc/qt_lib_dtkdeclarative.pri.in
@@ -4,8 +4,8 @@ QT.dtkdeclarative.MINOR_VERSION = @PROJECT_VERSION_MINOR@
QT.dtkdeclarative.PATCH_VERSION = @PROJECT_VERSION_PATCH@
QT.dtkdeclarative.name = dtkdeclarative
QT.dtkdeclarative.module = dtk@DTK_VERSION_MAJOR@declarative
-QT.dtkdeclarative.libs = @CMAKE_INSTALL_PREFIX@/@LIB_INSTALL_DIR@
-QT.dtkdeclarative.includes = @CMAKE_INSTALL_PREFIX@/@INCLUDE_INSTALL_DIR@
+QT.dtkdeclarative.libs = @LIB_INSTALL_DIR@
+QT.dtkdeclarative.includes = @INCLUDE_INSTALL_DIR@
QT.dtkdeclarative.frameworks =
QT.dtkdeclarative.depends = core dbus xml gui dtkcore dtkgui quick quick_private
QT.dtkdeclarative.module_config = v2 ltcg
@@ -0,0 +1,74 @@
{ stdenv
, lib
, fetchFromGitHub
, cmake
, pkg-config
, doxygen
, qt6Packages
, dtk6core
, librsvg
}:
stdenv.mkDerivation (finalAttrs: {
pname = "dtk6gui";
version = "6.0.15";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = "dtk6gui";
rev = finalAttrs.version;
hash = "sha256-B/A3VXPCon+NIUhO+IVGoojACVjut2h0nH5pLdJYufw=";
};
patches = [
./fix-pkgconfig-path.patch
./fix-pri-path.patch
];
nativeBuildInputs = [
cmake
pkg-config
doxygen
qt6Packages.qttools
qt6Packages.wrapQtAppsHook
];
buildInputs = [
qt6Packages.qtbase
librsvg
];
propagatedBuildInputs = [
dtk6core
qt6Packages.qtimageformats
];
cmakeFlags = [
"-DDTK_VERSION=${finalAttrs.version}"
"-DBUILD_DOCS=ON"
"-DMKSPECS_INSTALL_DIR=${placeholder "out"}/mkspecs/modules"
"-DQCH_INSTALL_DESTINATION=${placeholder "doc"}/share/doc"
];
preConfigure = ''
# qt.qpa.plugin: Could not find the Qt platform plugin "minimal"
# A workaround is to set QT_PLUGIN_PATH explicitly
export QT_PLUGIN_PATH=${lib.getBin qt6Packages.qtbase}/${qt6Packages.qtbase.qtPluginPrefix}
'';
outputs = [ "out" "dev" "doc" ];
postFixup = ''
for binary in $out/libexec/dtk6/DGui/bin/*; do
wrapQtApp $binary
done
'';
meta = {
description = "Deepin Toolkit, gui module for DDE look and feel";
homepage = "https://github.com/linuxdeepin/dtk6gui";
license = lib.licenses.lgpl3Plus;
platforms = lib.platforms.linux;
maintainers = lib.teams.deepin.members;
};
})
@@ -0,0 +1,16 @@
diff --git a/misc/dtkgui.pc.in b/misc/dtkgui.pc.in
index 89fdbbf..ad817c4 100644
--- a/misc/dtkgui.pc.in
+++ b/misc/dtkgui.pc.in
@@ -1,8 +1,8 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
-libdir=${prefix}/@LIBRARY_INSTALL_DIR@
-includedir=${prefix}/@INCLUDE_INSTALL_DIR@
-tooldir=${prefix}/@PACKAGE_TOOL_INSTALL_DIR@
+libdir=@LIBRARY_INSTALL_DIR@
+includedir=@INCLUDE_INSTALL_DIR@
+tooldir=@PACKAGE_TOOL_INSTALL_DIR@
Name: dtk@DTK_VERSION_MAJOR@gui
Description: Deepin Tool Kit dtkgui header files
@@ -0,0 +1,17 @@
diff --git a/misc/qt_lib_dtkgui.pri.in b/misc/qt_lib_dtkgui.pri.in
index 28308ee..9fb25e6 100644
--- a/misc/qt_lib_dtkgui.pri.in
+++ b/misc/qt_lib_dtkgui.pri.in
@@ -4,9 +4,9 @@ QT.dtkgui.MINOR_VERSION = @PROJECT_VERSION_MINOR@
QT.dtkgui.PATCH_VERSION = @PROJECT_VERSION_PATCH@
QT.dtkgui.name = dtkgui
QT.dtkgui.module = dtk@DTK_VERSION_MAJOR@gui
-QT.dtkgui.tools = @CMAKE_INSTALL_PREFIX@/@TOOL_INSTALL_DIR@
-QT.dtkgui.libs = @CMAKE_INSTALL_PREFIX@/@LIBRARY_INSTALL_DIR@
-QT.dtkgui.includes = @CMAKE_INSTALL_PREFIX@/@INCLUDE_INSTALL_DIR@
+QT.dtkgui.tools = @TOOL_INSTALL_DIR@
+QT.dtkgui.libs = @LIBRARY_INSTALL_DIR@
+QT.dtkgui.includes = @INCLUDE_INSTALL_DIR@
QT.dtkgui.frameworks =
QT.dtkgui.depends = core gui dtkcore gui_private dbus network
QT.dtkgui.module_config = v2 internal_module ltcg
@@ -0,0 +1,63 @@
{ stdenv
, lib
, fetchFromGitHub
, fetchpatch
, cmake
, pkg-config
, doxygen
, qt6Packages
, dtk6core
, libxcrypt
}:
stdenv.mkDerivation rec {
pname = "dtk6systemsettings";
version = "6.0.2";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
hash = "sha256-b/iI2OKQQoFj3vWatfGdDP9z+SEsK5XBra9KqjlGzqs=";
};
nativeBuildInputs = [
cmake
pkg-config
doxygen
qt6Packages.qttools
];
dontWrapQtApps = true;
buildInputs = [
qt6Packages.qtbase
dtk6core
libxcrypt
];
cmakeFlags = [
"-DDTK_VERSION=${version}"
"-DBUILD_DOCS=ON"
"-DBUILD_EXAMPLES=OFF"
"-DQCH_INSTALL_DESTINATION=${placeholder "doc"}/share/doc"
"-DMKSPECS_INSTALL_DIR=${placeholder "out"}/mkspecs/modules"
"-DDTK_INCLUDE_INSTALL_DIR=${placeholder "dev"}/include/dtk/DSystemSettings"
];
preConfigure = ''
# qt.qpa.plugin: Could not find the Qt platform plugin "minimal"
# A workaround is to set QT_PLUGIN_PATH explicitly
export QT_PLUGIN_PATH=${lib.getBin qt6Packages.qtbase}/${qt6Packages.qtbase.qtPluginPrefix}
'';
outputs = [ "out" "dev" "doc" ];
meta = {
description = "Qt-based development library for system settings";
homepage = "https://github.com/linuxdeepin/dtk6systemsettings";
license = lib.licenses.lgpl3Plus;
platforms = lib.platforms.linux;
maintainers = lib.teams.deepin.members;
};
}
@@ -0,0 +1,83 @@
{ stdenv
, lib
, fetchFromGitHub
, cmake
, pkg-config
, doxygen
, qt6Packages
, dtk6gui
, cups
, libstartup_notification
}:
stdenv.mkDerivation (finalAttrs: {
pname = "dtk6widget";
version = "6.0.15";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = "dtk6widget";
rev = finalAttrs.version;
hash = "sha256-QCdRjkD4JTPecLeZK+Y5U/H9pBgKI4DHRuchz/GymWQ=";
};
patches = [
./fix-pkgconfig-path.patch
./fix-pri-path.patch
./fix-build-on-qt-6_7.patch
];
postPatch = ''
substituteInPlace src/widgets/dapplication.cpp \
--replace-fail "auto dataDirs = DStandardPaths::standardLocations(QStandardPaths::GenericDataLocation);" \
"auto dataDirs = DStandardPaths::standardLocations(QStandardPaths::GenericDataLocation) << \"$out/share\";"
'';
nativeBuildInputs = [
cmake
doxygen
pkg-config
qt6Packages.qttools
qt6Packages.wrapQtAppsHook
];
buildInputs = [
cups
libstartup_notification
] ++ (with qt6Packages; [
qtbase
qtmultimedia
qtsvg
]);
propagatedBuildInputs = [ dtk6gui ];
cmakeFlags = [
"-DDTK_VERSION=${finalAttrs.version}"
"-DBUILD_DOCS=ON"
"-DMKSPECS_INSTALL_DIR=${placeholder "dev"}/mkspecs/modules"
"-DQCH_INSTALL_DESTINATION=${placeholder "doc"}/share/doc"
];
preConfigure = ''
# qt.qpa.plugin: Could not find the Qt platform plugin "minimal"
# A workaround is to set QT_PLUGIN_PATH explicitly
export QT_PLUGIN_PATH=${lib.getBin qt6Packages.qtbase}/${qt6Packages.qtbase.qtPluginPrefix}
'';
outputs = [ "out" "dev" "doc" ];
postFixup = ''
for binary in $out/lib/dtk6/DWidget/bin/*; do
wrapQtApp $binary
done
'';
meta = {
description = "Deepin graphical user interface library";
homepage = "https://github.com/linuxdeepin/dtk6widget";
license = lib.licenses.lgpl3Plus;
platforms = lib.platforms.linux;
maintainers = lib.teams.deepin.members;
};
})
@@ -0,0 +1,20 @@
diff --git a/src/widgets/dkeysequenceedit.cpp b/src/widgets/dkeysequenceedit.cpp
index a99e17ae..0e1c57f6 100644
--- a/src/widgets/dkeysequenceedit.cpp
+++ b/src/widgets/dkeysequenceedit.cpp
@@ -276,13 +276,13 @@ void DKeySequenceEdit::keyPressEvent(QKeyEvent *e)
}
if (e->modifiers() & Qt::ShiftModifier) {
- QList<int> possibleKeys = QKeyMapper::possibleKeys(e);
+ auto possibleKeys = QKeyMapper::possibleKeys(e);
int pkTotal = possibleKeys.count();
if (!pkTotal)
return;
bool found = false;
for (int i = 0; i < possibleKeys.size(); ++i) {
- if (possibleKeys.at(i) - nextKey == int(e->modifiers())
+ if (static_cast<int>(possibleKeys.at(i)) - nextKey == static_cast<int>(e->modifiers())
|| (possibleKeys.at(i) == nextKey && e->modifiers() == Qt::ShiftModifier)) {
nextKey = possibleKeys.at(i);
found = true;
@@ -0,0 +1,14 @@
diff --git a/misc/DtkWidget.pc.in b/misc/DtkWidget.pc.in
index 3c610669..b6ed04ca 100644
--- a/misc/DtkWidget.pc.in
+++ b/misc/DtkWidget.pc.in
@@ -1,7 +1,7 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
-libdir=${prefix}/@LIBRARY_INSTALL_DIR@
-includedir=${prefix}/@INCLUDE_INSTALL_DIR@
+libdir=@LIBRARY_INSTALL_DIR@
+includedir=@INCLUDE_INSTALL_DIR@
Name: dtk@DTK_VERSION_MAJOR@widget
Description: Deepin Tool Kit dtkwidget header files
@@ -0,0 +1,17 @@
diff --git a/misc/qt_lib_DtkWidget.pri.in b/misc/qt_lib_DtkWidget.pri.in
index 623878d3..561f5186 100644
--- a/misc/qt_lib_DtkWidget.pri.in
+++ b/misc/qt_lib_DtkWidget.pri.in
@@ -4,9 +4,9 @@ QT.dtkwidget.MINOR_VERSION = @PROJECT_VERSION_MINOR@
QT.dtkwidget.PATCH_VERSION = @PROJECT_VERSION_PATCH@
QT.dtkwidget.name = dtkwidget
QT.dtkwidget.module = dtk@DTK_VERSION_MAJOR@widget
-QT.dtkwidget.tools = @CMAKE_INSTALL_PREFIX@/@TOOL_INSTALL_DIR@
-QT.dtkwidget.libs = @CMAKE_INSTALL_PREFIX@/@LIBRARY_INSTALL_DIR@
-QT.dtkwidget.includes = @CMAKE_INSTALL_PREFIX@/@INCLUDE_INSTALL_DIR@
+QT.dtkwidget.tools = @TOOL_INSTALL_DIR@
+QT.dtkwidget.libs = @LIBRARY_INSTALL_DIR@
+QT.dtkwidget.includes = @INCLUDE_INSTALL_DIR@
QT.dtkwidget.frameworks =
QT.dtkwidget.depends = core gui dtkcore network concurrent dtkgui printsupport printsupport_private widgets widgets_private gui_private x11extras dbus
QT.dtkwidget.module_config = v2 internal_module ltcg
@@ -15,7 +15,7 @@
, re2
, zlib
, microsoft-gsl
, iconv
, libiconv
, protobuf_21
, pythonSupport ? true
, cudaSupport ? config.cudaSupport
@@ -138,7 +138,7 @@ effectiveStdenv.mkDerivation rec {
packaging
]) ++ lib.optionals effectiveStdenv.isDarwin [
Foundation
iconv
libiconv
] ++ lib.optionals cudaSupport (with cudaPackages; [
cuda_cccl # cub/cub.cuh
libcublas # cublas_v2.h
+1 -1
View File
@@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
"--enable-pcre2-16"
"--enable-pcre2-32"
# only enable jit on supported platforms which excludes Apple Silicon, see https://github.com/zherczeg/sljit/issues/51
"--enable-jit=${if stdenv.hostPlatform.isS390x then "no" else "auto"}"
"--enable-jit=${if stdenv.hostPlatform.isS390x || stdenv.hostPlatform.isLoongArch64 then "no" else "auto"}"
]
# fix pcre jit in systemd units that set MemoryDenyWriteExecute=true like gitea
++ lib.optional withJitSealloc "--enable-jit-sealloc";
@@ -2,7 +2,6 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
cmake,
libminc,
netpbm,
@@ -10,24 +9,16 @@
stdenv.mkDerivation rec {
pname = "bicpl";
version = "unstable-2023-01-19";
version = "unstable-2024-05-14";
# master is not actively maintained, using develop and develop-apple branches
src = fetchFromGitHub {
owner = "BIC-MNI";
repo = pname;
rev = "884b3ac8db945a17df51a325d29f49b825a61c3e";
hash = "sha256-zAA+hPwjMawQ1rJuv8W30EqKO+AI0aq9ybquBnKlzC0=";
rev = "7e1e791483cf135fe29b8eecd7a360aa892823ae";
hash = "sha256-SvbtPUfEYp3IGivG+5yFdJF904miyMk+s15zwW7e7b4=";
};
patches = [
# fixes build by including missing time.h header
(fetchpatch {
url = "https://github.com/RaghavSood/bicpl/commit/3def4acd6bae61ff7a930ef8422ad920690382a6.patch";
hash = "sha256-VdAKuLWTZY7JriK1rexIiuj8y5ToaSEJ5Y+BbnfdYnI=";
})
];
nativeBuildInputs = [ cmake ];
buildInputs = [
libminc
@@ -1,5 +1,6 @@
{ lib
, buildPythonPackage
, pythonAtLeast
, fetchFromGitHub
, mock
, fetchpatch
@@ -11,6 +12,8 @@ buildPythonPackage rec {
version = "unstable-2019-03-30";
format = "setuptools";
disabled = pythonAtLeast "3.12";
src = fetchFromGitHub {
owner = "brouberol";
repo = "contexttimer";
@@ -1,16 +1,32 @@
{ lib, buildPythonPackage, fetchurl, isPy27, renpy
, cython_0, SDL2, SDL2_image, SDL2_ttf, SDL2_mixer, libjpeg, libpng }:
buildPythonPackage rec {
{
lib,
buildPythonPackage,
fetchurl,
isPy27,
renpy,
cython_0,
SDL2,
SDL2_image,
SDL2_ttf,
SDL2_mixer,
libjpeg,
libpng,
setuptools,
}:
let
pname = "pygame-sdl2";
version = "2.1.0";
format = "setuptools";
renpy_version = renpy.base_version;
in
buildPythonPackage {
inherit pname version;
name = "${pname}-${version}-${renpy_version}";
pyproject = true;
src = fetchurl {
url = "https://www.renpy.org/dl/${renpy_version}/pygame_sdl2-${version}+renpy${renpy_version}.tar.gz";
hash = "sha256-mrfrsRAVEqw7fwtYdeATp/8AtMn74x9pJEXwYZPOl2I=";
hash = "sha256-Zib39NyQ1pGVCWPrK5/Tl3dAylUlmKZKxU8pf+OpAdY=";
};
# force rebuild of headers needed for install
@@ -24,27 +40,26 @@ buildPythonPackage rec {
'';
nativeBuildInputs = [
SDL2.dev cython_0
SDL2.dev
cython_0
setuptools
];
buildInputs = [
SDL2 SDL2_image SDL2_ttf SDL2_mixer
libjpeg libpng
SDL2
SDL2_image
SDL2_ttf
SDL2_mixer
libjpeg
libpng
];
doCheck = isPy27; # python3 tests are non-functional
postInstall = ''
( cd "$out"/include/python*/ ;
ln -s pygame-sdl2 pygame_sdl2 || true ; )
'';
meta = with lib; {
meta = {
description = "A reimplementation of parts of pygame API using SDL2";
homepage = "https://github.com/renpy/pygame_sdl2";
# Some parts are also available under Zlib License
license = licenses.lgpl2;
maintainers = with maintainers; [ raskin ];
homepage = "https://github.com/renpy/pygame_sdl2";
license = with lib.licenses; [ lgpl2 zlib ];
maintainers = with lib.maintainers; [ raskin ];
};
}
@@ -2,7 +2,7 @@
buildDunePackage rec {
pname = "ocp-index";
version = "1.3.5";
version = "1.3.6";
minimalOCamlVersion = "4.08";
@@ -10,7 +10,7 @@ buildDunePackage rec {
owner = "OCamlPro";
repo = "ocp-index";
rev = version;
hash = "sha256-Zn3BPaMB68V363OljFFdmLyYf+S0wFJK44L8t1TSG1Q=";
hash = "sha256-EgRpC58NBVFO1w0xx11CnonatU2H7bECsEk6Y4c/odY=";
};
nativeBuildInputs = [ cppo ];
+3 -3
View File
@@ -2,15 +2,15 @@
buildGoModule rec {
pname = "stripe-cli";
version = "1.19.4";
version = "1.19.5";
src = fetchFromGitHub {
owner = "stripe";
repo = pname;
rev = "v${version}";
hash = "sha256-pcDlZQCVy1xy8LZ+S5JcGNoiw1Px7C4U6Pn1pe31DoI=";
hash = "sha256-gunLbZOT0cnWGxc6714XcPdHJVK4LbDBwC2zt03WrUM=";
};
vendorHash = "sha256-DYA6cu2KzEBZ4wsT7wjcdY1endQQOZlj2aOwu6iGLew=";
vendorHash = "sha256-xFWU+OazwLTb5qdFeYth1MlPJ76nEK4qSCNGVhC/PxE=";
nativeBuildInputs = [ installShellFiles ];
@@ -20,7 +20,7 @@
rustc,
rustPlatform,
makeWrapper,
writeScript,
nix-update-script,
python3,
fuseSupport ? false,
}:
@@ -104,15 +104,7 @@ stdenv.mkDerivation (finalAttrs: {
inherit (nixosTests.installer) bcachefsSimple bcachefsEncrypted bcachefsMulti;
};
updateScript = writeScript "update-bcachefs-tools-and-cargo-lock.sh" ''
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq common-updater-scripts
res="$(curl ''${GITHUB_TOKEN:+-u ":$GITHUB_TOKEN"} \
-sL "https://api.github.com/repos/${finalAttrs.src.owner}/${finalAttrs.src.repo}/tags?per_page=1")"
version="$(echo $res | jq '.[0].name | split("v") | .[1]' --raw-output)"
update-source-version ${finalAttrs.pname} "$version" --ignore-same-hash
'';
updateScript = nix-update-script {};
};
enableParallelBuilding = true;
@@ -1,44 +1,29 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
}:
stdenv.mkDerivation rec {
pname = "proxychains-ng";
version = "4.16";
version = "4.17";
src = fetchFromGitHub {
owner = "rofl0r";
repo = pname;
rev = "v${version}";
sha256 = "sha256-uu/zN6W0ue526/3a9QeYg6J4HLaovZJVOYXksjouYok=";
sha256 = "sha256-cHRWPQm6aXsror0z+S2Ddm7w14c1OvEruDublWsvnXs=";
};
patches = [
# zsh completion
(fetchpatch {
url = "https://github.com/rofl0r/proxychains-ng/commit/04023d3811d8ee34b498b429bac7a871045de59c.patch";
sha256 = "sha256-Xcg2kmAhj/OJn/RKJAxb9MOJNJQY7FXmxEIzQ5dvabo=";
})
(fetchpatch {
url = "https://github.com/rofl0r/proxychains-ng/commit/9b42da71f4df7b783cf07a58ffa095e293c43380.patch";
sha256 = "sha256-tYv9XP51WtsjaoklwQk3D/MQceoOvtdMwBraECt6AXQ=";
})
# https://github.com/NixOS/nixpkgs/issues/136093
./swap-priority-4-and-5-in-get_config_path.patch
];
installFlags = [
"install-config"
# TODO: check on next update if that works and remove postInstall
# "install-zsh-completion"
"install-zsh-completion"
];
postInstall = ''
./tools/install.sh -D -m 644 completions/_proxychains $out/share/zsh/site_functions/_proxychains4
'';
meta = with lib; {
description = "A preloader which hooks calls to sockets in dynamically linked programs and redirects it through one or more socks/http proxies";
homepage = "https://github.com/rofl0r/proxychains-ng";
+6 -8
View File
@@ -12387,8 +12387,6 @@ with pkgs;
redsocks = callPackage ../tools/networking/redsocks { };
renpy = callPackage ../development/interpreters/renpy { };
rep = callPackage ../development/tools/rep { };
repseek = callPackage ../applications/science/biology/repseek { };
@@ -18285,11 +18283,11 @@ with pkgs;
bpftools = callPackage ../os-specific/linux/bpftools { };
bcc = callPackage ../os-specific/linux/bcc {
bcc = callPackage ../by-name/bc/bcc/package.nix {
llvmPackages = llvmPackages_16;
};
bpftrace = callPackage ../os-specific/linux/bpftrace {
bpftrace = callPackage ../by-name/bp/bpftrace/package.nix {
llvmPackages = llvmPackages_16;
};
@@ -19247,8 +19245,6 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Security;
};
pahole = callPackage ../development/tools/misc/pahole { };
panopticon = callPackage ../development/tools/analysis/panopticon { };
parinfer-rust = callPackage ../development/tools/parinfer-rust { };
@@ -32072,6 +32068,10 @@ with pkgs;
buildGoModule = buildGo121Module;
go = go_1_21;
}) k3s_1_26 k3s_1_27 k3s_1_28 k3s_1_29;
inherit (callPackage ../applications/networking/cluster/k3s {
buildGoModule = buildGo122Module;
go = go_1_22;
}) k3s_1_30;
k3s = k3s_1_29;
k3sup = callPackage ../applications/networking/cluster/k3sup { };
@@ -39948,8 +39948,6 @@ with pkgs;
roadrunner = callPackage ../servers/roadrunner { };
rmfakecloud = callPackage ../servers/rmfakecloud { };
rmfuse = callPackage ../tools/filesystems/rmfuse { };
rmount = callPackage ../tools/filesystems/rmount { };