0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

Merge #219444: staging-next 2023-03-04

This commit is contained in:
Vladimír Čunát 2023-03-15 17:35:39 +01:00
commit a86610144f
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA
2398 changed files with 8459 additions and 5150 deletions

View file

@ -116,10 +116,6 @@ For convenience, it also adds `dconf.lib` for a GIO module implementing a GSetti
- []{#ssec-gnome-hooks-gobject-introspection} `gobject-introspection` setup hook populates `GI_TYPELIB_PATH` variable with `lib/girepository-1.0` directories of dependencies, which is then added to wrapper by `wrapGAppsHook`. It also adds `share` directories of dependencies to `XDG_DATA_DIRS`, which is intended to promote GIR files but it also [pollutes the closures](https://github.com/NixOS/nixpkgs/issues/32790) of packages using `wrapGAppsHook`. - []{#ssec-gnome-hooks-gobject-introspection} `gobject-introspection` setup hook populates `GI_TYPELIB_PATH` variable with `lib/girepository-1.0` directories of dependencies, which is then added to wrapper by `wrapGAppsHook`. It also adds `share` directories of dependencies to `XDG_DATA_DIRS`, which is intended to promote GIR files but it also [pollutes the closures](https://github.com/NixOS/nixpkgs/issues/32790) of packages using `wrapGAppsHook`.
::: {.warning}
The setup hook [currently](https://github.com/NixOS/nixpkgs/issues/56943) does not work in expressions with `strictDeps` enabled, like Python packages. In those cases, you will need to disable it with `strictDeps = false;`.
:::
- []{#ssec-gnome-hooks-gst-grl-plugins} Setup hooks of `gst_all_1.gstreamer` and `grilo` will populate the `GST_PLUGIN_SYSTEM_PATH_1_0` and `GRL_PLUGIN_PATH` variables, respectively, which will then be added to the wrapper by `wrapGAppsHook`. - []{#ssec-gnome-hooks-gst-grl-plugins} Setup hooks of `gst_all_1.gstreamer` and `grilo` will populate the `GST_PLUGIN_SYSTEM_PATH_1_0` and `GRL_PLUGIN_PATH` variables, respectively, which will then be added to the wrapper by `wrapGAppsHook`.
You can also pass additional arguments to `makeWrapper` using `gappsWrapperArgs` in `preFixup` hook: You can also pass additional arguments to `makeWrapper` using `gappsWrapperArgs` in `preFixup` hook:

View file

@ -158,6 +158,16 @@ in {
''; '';
}; };
managerEnvironment = mkOption {
type = with types; attrsOf (nullOr (oneOf [ str path package ]));
default = {};
example = { SYSTEMD_LOG_LEVEL = "debug"; };
description = lib.mdDoc ''
Environment variables of PID 1. These variables are
*not* passed to started units.
'';
};
contents = mkOption { contents = mkOption {
description = lib.mdDoc "Set of files that have to be linked into the initrd"; description = lib.mdDoc "Set of files that have to be linked into the initrd";
example = literalExpression '' example = literalExpression ''
@ -355,8 +365,11 @@ in {
less = "${pkgs.less}/bin/less"; less = "${pkgs.less}/bin/less";
mount = "${cfg.package.util-linux}/bin/mount"; mount = "${cfg.package.util-linux}/bin/mount";
umount = "${cfg.package.util-linux}/bin/umount"; umount = "${cfg.package.util-linux}/bin/umount";
fsck = "${cfg.package.util-linux}/bin/fsck";
}; };
managerEnvironment.PATH = "/bin:/sbin";
contents = { contents = {
"/init".source = "${cfg.package}/lib/systemd/systemd"; "/init".source = "${cfg.package}/lib/systemd/systemd";
"/etc/systemd/system".source = stage1Units; "/etc/systemd/system".source = stage1Units;
@ -365,6 +378,7 @@ in {
[Manager] [Manager]
DefaultEnvironment=PATH=/bin:/sbin ${optionalString (isBool cfg.emergencyAccess && cfg.emergencyAccess) "SYSTEMD_SULOGIN_FORCE=1"} DefaultEnvironment=PATH=/bin:/sbin ${optionalString (isBool cfg.emergencyAccess && cfg.emergencyAccess) "SYSTEMD_SULOGIN_FORCE=1"}
${cfg.extraConfig} ${cfg.extraConfig}
ManagerEnvironment=${lib.concatStringsSep " " (lib.mapAttrsToList (n: v: "${n}=${lib.escapeShellArg v}") cfg.managerEnvironment)}
''; '';
"/lib/modules".source = "${modulesClosure}/lib/modules"; "/lib/modules".source = "${modulesClosure}/lib/modules";
@ -444,21 +458,6 @@ in {
(v: let n = escapeSystemdPath v.where; (v: let n = escapeSystemdPath v.where;
in nameValuePair "${n}.automount" (automountToUnit n v)) cfg.automounts); in nameValuePair "${n}.automount" (automountToUnit n v)) cfg.automounts);
# The unit in /run/systemd/generator shadows the unit in
# /etc/systemd/system, but will still apply drop-ins from
# /etc/systemd/system/foo.service.d/
#
# We need IgnoreOnIsolate, otherwise the Requires dependency of
# a mount unit on its makefs unit causes it to be unmounted when
# we isolate for switch-root. Use a dummy package so that
# generateUnits will generate drop-ins instead of unit files.
packages = [(pkgs.runCommand "dummy" {} ''
mkdir -p $out/etc/systemd/system
touch $out/etc/systemd/system/systemd-{makefs,growfs}@.service
'')];
services."systemd-makefs@" = lib.mkIf needMakefs { unitConfig.IgnoreOnIsolate = true; };
services."systemd-growfs@" = lib.mkIf needGrowfs { unitConfig.IgnoreOnIsolate = true; };
# make sure all the /dev nodes are set up # make sure all the /dev nodes are set up
services.systemd-tmpfiles-setup-dev.wantedBy = ["sysinit.target"]; services.systemd-tmpfiles-setup-dev.wantedBy = ["sysinit.target"];

View file

@ -140,7 +140,10 @@ let
else if config.fsType == "reiserfs" then "-q" else if config.fsType == "reiserfs" then "-q"
else null; else null;
in { in {
options = mkIf config.autoResize [ "x-nixos.autoresize" ]; options = mkMerge [
(mkIf config.autoResize [ "x-nixos.autoresize" ])
(mkIf (utils.fsNeededForBoot config) [ "x-initrd.mount" ])
];
formatOptions = mkIf (defaultFormatOptions != null) (mkDefault defaultFormatOptions); formatOptions = mkIf (defaultFormatOptions != null) (mkDefault defaultFormatOptions);
}; };
@ -155,27 +158,54 @@ let
makeFstabEntries = makeFstabEntries =
let let
fsToSkipCheck = [ "none" "bindfs" "btrfs" "zfs" "tmpfs" "nfs" "nfs4" "vboxsf" "glusterfs" "apfs" "9p" "cifs" "prl_fs" "vmhgfs" ]; fsToSkipCheck = [
"none"
"auto"
"overlay"
"iso9660"
"bindfs"
"udf"
"btrfs"
"zfs"
"tmpfs"
"bcachefs"
"nfs"
"nfs4"
"nilfs2"
"vboxsf"
"squashfs"
"glusterfs"
"apfs"
"9p"
"cifs"
"prl_fs"
"vmhgfs"
] ++ lib.optionals (!config.boot.initrd.checkJournalingFS) [
"ext3"
"ext4"
"reiserfs"
"xfs"
"jfs"
"f2fs"
];
isBindMount = fs: builtins.elem "bind" fs.options; isBindMount = fs: builtins.elem "bind" fs.options;
skipCheck = fs: fs.noCheck || fs.device == "none" || builtins.elem fs.fsType fsToSkipCheck || isBindMount fs; skipCheck = fs: fs.noCheck || fs.device == "none" || builtins.elem fs.fsType fsToSkipCheck || isBindMount fs;
# https://wiki.archlinux.org/index.php/fstab#Filepath_spaces # https://wiki.archlinux.org/index.php/fstab#Filepath_spaces
escape = string: builtins.replaceStrings [ " " "\t" ] [ "\\040" "\\011" ] string; escape = string: builtins.replaceStrings [ " " "\t" ] [ "\\040" "\\011" ] string;
in fstabFileSystems: { rootPrefix ? "", excludeChecks ? false, extraOpts ? (fs: []) }: concatMapStrings (fs: in fstabFileSystems: { rootPrefix ? "", extraOpts ? (fs: []) }: concatMapStrings (fs:
(optionalString (isBindMount fs) (escape rootPrefix)) (optionalString (isBindMount fs) (escape rootPrefix))
+ (if fs.device != null then escape fs.device + (if fs.device != null then escape fs.device
else if fs.label != null then "/dev/disk/by-label/${escape fs.label}" else if fs.label != null then "/dev/disk/by-label/${escape fs.label}"
else throw "No device specified for mount point ${fs.mountPoint}.") else throw "No device specified for mount point ${fs.mountPoint}.")
+ " " + escape (rootPrefix + fs.mountPoint) + " " + escape fs.mountPoint
+ " " + fs.fsType + " " + fs.fsType
+ " " + escape (builtins.concatStringsSep "," (fs.options ++ (extraOpts fs))) + " " + escape (builtins.concatStringsSep "," (fs.options ++ (extraOpts fs)))
+ " " + (optionalString (!excludeChecks) + " 0 " + (if skipCheck fs then "0" else if fs.mountPoint == "/" then "1" else "2")
("0 " + (if skipCheck fs then "0" else if fs.mountPoint == "/" then "1" else "2")))
+ "\n" + "\n"
) fstabFileSystems; ) fstabFileSystems;
initrdFstab = pkgs.writeText "initrd-fstab" (makeFstabEntries (filter utils.fsNeededForBoot fileSystems) { initrdFstab = pkgs.writeText "initrd-fstab" (makeFstabEntries (filter utils.fsNeededForBoot fileSystems) {
rootPrefix = "/sysroot"; rootPrefix = "/sysroot";
excludeChecks = true;
extraOpts = fs: extraOpts = fs:
(optional fs.autoResize "x-systemd.growfs") (optional fs.autoResize "x-systemd.growfs")
++ (optional fs.autoFormat "x-systemd.makefs"); ++ (optional fs.autoFormat "x-systemd.makefs");
@ -328,7 +358,9 @@ in
)} )}
''; '';
boot.initrd.systemd.contents."/etc/fstab".source = initrdFstab; boot.initrd.systemd.storePaths = [initrdFstab];
boot.initrd.systemd.managerEnvironment.SYSTEMD_SYSROOT_FSTAB = initrdFstab;
boot.initrd.systemd.services.initrd-parse-etc.environment.SYSTEMD_SYSROOT_FSTAB = initrdFstab;
# Provide a target that pulls in all filesystems. # Provide a target that pulls in all filesystems.
systemd.targets.fs = systemd.targets.fs =

View file

@ -1101,15 +1101,17 @@ in
what = "overlay"; what = "overlay";
type = "overlay"; type = "overlay";
options = "lowerdir=/sysroot/nix/.ro-store,upperdir=/sysroot/nix/.rw-store/store,workdir=/sysroot/nix/.rw-store/work"; options = "lowerdir=/sysroot/nix/.ro-store,upperdir=/sysroot/nix/.rw-store/store,workdir=/sysroot/nix/.rw-store/work";
wantedBy = ["local-fs.target"]; wantedBy = ["initrd-fs.target"];
before = ["local-fs.target"]; before = ["initrd-fs.target"];
requires = ["sysroot-nix-.ro\\x2dstore.mount" "sysroot-nix-.rw\\x2dstore.mount" "rw-store.service"]; requires = ["rw-store.service"];
after = ["sysroot-nix-.ro\\x2dstore.mount" "sysroot-nix-.rw\\x2dstore.mount" "rw-store.service"]; after = ["rw-store.service"];
unitConfig.IgnoreOnIsolate = true; unitConfig.RequiresMountsFor = "/sysroot/nix/.ro-store";
}]; }];
services.rw-store = { services.rw-store = {
after = ["sysroot-nix-.rw\\x2dstore.mount"]; unitConfig = {
unitConfig.DefaultDependencies = false; DefaultDependencies = false;
RequiresMountsFor = "/sysroot/nix/.rw-store";
};
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";
ExecStart = "/bin/mkdir -p -m 0755 /sysroot/nix/.rw-store/store /sysroot/nix/.rw-store/work /sysroot/nix/store"; ExecStart = "/bin/mkdir -p -m 0755 /sysroot/nix/.rw-store/store /sysroot/nix/.rw-store/work /sysroot/nix/store";

View file

@ -238,6 +238,7 @@ in {
freshrss-pgsql = handleTest ./freshrss-pgsql.nix {}; freshrss-pgsql = handleTest ./freshrss-pgsql.nix {};
frr = handleTest ./frr.nix {}; frr = handleTest ./frr.nix {};
fsck = handleTest ./fsck.nix {}; fsck = handleTest ./fsck.nix {};
fsck-systemd-stage-1 = handleTest ./fsck.nix { systemdStage1 = true; };
ft2-clone = handleTest ./ft2-clone.nix {}; ft2-clone = handleTest ./ft2-clone.nix {};
mimir = handleTest ./mimir.nix {}; mimir = handleTest ./mimir.nix {};
garage = handleTest ./garage {}; garage = handleTest ./garage {};

View file

@ -1,3 +1,9 @@
{ system ? builtins.currentSystem
, config ? {}
, pkgs ? import ../.. { inherit system config; }
, systemdStage1 ? false
}:
import ./make-test-python.nix { import ./make-test-python.nix {
name = "fsck"; name = "fsck";
@ -11,13 +17,17 @@ import ./make-test-python.nix {
autoFormat = true; autoFormat = true;
}; };
}; };
boot.initrd.systemd.enable = systemdStage1;
}; };
testScript = '' testScript = ''
machine.wait_for_unit("default.target") machine.wait_for_unit("default.target")
with subtest("root fs is fsckd"): with subtest("root fs is fsckd"):
machine.succeed("journalctl -b | grep 'fsck.ext4.*/dev/vda'") machine.succeed("journalctl -b | grep '${if systemdStage1
then "fsck.*vda.*clean"
else "fsck.ext4.*/dev/vda"}'")
with subtest("mnt fs is fsckd"): with subtest("mnt fs is fsckd"):
machine.succeed("journalctl -b | grep 'fsck.*/dev/vdb.*clean'") machine.succeed("journalctl -b | grep 'fsck.*/dev/vdb.*clean'")

View file

@ -107,7 +107,10 @@ import ../make-test-python.nix (
client = { pkgs, ... }: { client = { pkgs, ... }: {
environment.systemPackages = [ environment.systemPackages = [
(pkgs.writers.writePython3Bin "create_management_room_and_invite_mjolnir" (pkgs.writers.writePython3Bin "create_management_room_and_invite_mjolnir"
{ libraries = [ pkgs.python3Packages.matrix-nio ]; } '' { libraries = with pkgs.python3Packages; [
matrix-nio
] ++ matrix-nio.optional-dependencies.e2e;
} ''
import asyncio import asyncio
from nio import ( from nio import (

View file

@ -118,7 +118,7 @@ in {
}; };
}; };
testScript = { nodes, ... }: let testScript = { nodes, ... }: let
specializations = "${nodes.machine.config.system.build.toplevel}/specialisation"; specializations = "${nodes.machine.system.build.toplevel}/specialisation";
changeRootPw = '' changeRootPw = ''
dn: olcDatabase={1}mdb,cn=config dn: olcDatabase={1}mdb,cn=config
changetype: modify changetype: modify

View file

@ -31,13 +31,13 @@ python3Packages.buildPythonApplication rec {
pkg-config pkg-config
wrapGAppsHook4 wrapGAppsHook4
desktop-file-utils desktop-file-utils
gobject-introspection
]; ];
buildInputs = [ buildInputs = [
glib glib
gtk4 gtk4
libadwaita libadwaita
gobject-introspection
gst_all_1.gstreamer gst_all_1.gstreamer
gst_all_1.gst-plugins-base gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good gst_all_1.gst-plugins-good
@ -48,9 +48,6 @@ python3Packages.buildPythonApplication rec {
pygobject3 pygobject3
]; ];
# Broken with gobject-introspection setup hook
# https://github.com/NixOS/nixpkgs/issues/56943
strictDeps = false;
format = "other"; format = "other";
postPatch = '' postPatch = ''

View file

@ -24,11 +24,6 @@ python3Packages.buildPythonApplication rec {
pname = "cozy"; pname = "cozy";
version = "1.2.1"; version = "1.2.1";
# Temporary fix
# See https://github.com/NixOS/nixpkgs/issues/57029
# and https://github.com/NixOS/nixpkgs/issues/56943
strictDeps = false;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "geigi"; owner = "geigi";
repo = pname; repo = pname;

View file

@ -107,6 +107,5 @@ stdenv.mkDerivation rec {
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
maintainers = with maintainers; [ jtojnar ]; maintainers = with maintainers; [ jtojnar ];
platforms = platforms.linux; platforms = platforms.linux;
badPlatforms = [ "aarch64-linux" ];
}; };
} }

View file

@ -27,17 +27,12 @@ python3Packages.buildPythonApplication rec {
intltool intltool
wrapGAppsHook wrapGAppsHook
glibcLocales glibcLocales
gobject-introspection
]; ];
# as of 2021-07, the gobject-introspection setup hook does not
# work with `strictDeps` enabled, thus for proper `wrapGAppsHook`
# it needs to be disabled explicitly. https://github.com/NixOS/nixpkgs/issues/56943
strictDeps = false;
buildInputs = [ buildInputs = [
python3 python3
gtk3 gtk3
gobject-introspection
gnome.adwaita-icon-theme gnome.adwaita-icon-theme
]; ];

View file

@ -43,7 +43,7 @@ python3Packages.buildPythonApplication {
notify2 notify2
pyroute2 pyroute2
pygobject3 pygobject3
PyChromecast pychromecast
lxml lxml
setuptools setuptools
zeroconf zeroconf

View file

@ -110,6 +110,5 @@ in stdenv.mkDerivation rec {
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
maintainers = with maintainers; [ ]; maintainers = with maintainers; [ ];
platforms = platforms.linux; platforms = platforms.linux;
badPlatforms = [ "aarch64-linux" ];
}; };
} }

View file

@ -39,10 +39,6 @@ in buildPythonApplication rec {
setuptools setuptools
]; ];
# Otherwise the setup hook for gobject-introspection is not run:
# https://github.com/NixOS/nixpkgs/issues/56943
strictDeps = false;
postPatch = '' postPatch = ''
# Remove "Local MPD" tab which is not suitable for NixOS. # Remove "Local MPD" tab which is not suitable for NixOS.
sed -i '/localmpd/d' sonata/consts.py sed -i '/localmpd/d' sonata/consts.py

View file

@ -70,15 +70,11 @@ python3Packages.buildPythonApplication rec {
requests requests
semver semver
] ]
++ lib.optional chromecastSupport PyChromecast ++ lib.optional chromecastSupport pychromecast
++ lib.optional keyringSupport keyring ++ lib.optional keyringSupport keyring
++ lib.optional serverSupport bottle ++ lib.optional serverSupport bottle
; ;
# hook for gobject-introspection doesn't like strictDeps
# https://github.com/NixOS/nixpkgs/issues/56943
strictDeps = false;
nativeCheckInputs = with python3Packages; [ nativeCheckInputs = with python3Packages; [
pytest pytest
]; ];

View file

@ -97,7 +97,7 @@ stdenv.mkDerivation rec {
plexapi plexapi
pulsectl pulsectl
pycairo pycairo
PyChromecast pychromecast
pylast pylast
pygobject3 pygobject3
pylyrics pylyrics

View file

@ -18,7 +18,7 @@
, zlib , zlib
}: }:
let let
py3 = python3.withPackages (p: [ p.Mako ]); py3 = python3.withPackages (p: [ p.mako ]);
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "clightning"; pname = "clightning";

View file

@ -66,6 +66,5 @@ stdenv.mkDerivation rec {
maintainers = [ maintainers.mkg20001 ]; maintainers = [ maintainers.mkg20001 ];
license = licenses.gpl2; license = licenses.gpl2;
platforms = platforms.linux; platforms = platforms.linux;
badPlatforms = [ "aarch64-linux" ];
}; };
} }

View file

@ -30,10 +30,6 @@ buildPythonApplication rec {
"--suffix XDG_DATA_DIRS : $XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH" "--suffix XDG_DATA_DIRS : $XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH"
]; ];
# Until gobject-introspection in nativeBuildInputs is supported.
# https://github.com/NixOS/nixpkgs/issues/56943#issuecomment-472568643
strictDeps = false;
meta = with lib; { meta = with lib; {
homepage = "https://rednotebook.sourceforge.io/"; homepage = "https://rednotebook.sourceforge.io/";
changelog = "https://github.com/jendrikseipp/rednotebook/blob/v${version}/CHANGELOG.md"; changelog = "https://github.com/jendrikseipp/rednotebook/blob/v${version}/CHANGELOG.md";

View file

@ -135,9 +135,6 @@ stdenv.mkDerivation rec {
"--set QT_QPA_PLATFORM xcb" "--set QT_QPA_PLATFORM xcb"
]; ];
# https://github.com/NixOS/nixpkgs/issues/201254
NIX_LDFLAGS = lib.optionalString (stdenv.isLinux && stdenv.isAarch64 && stdenv.cc.isGNU) "-lgcc";
# Use nix-provided libraries instead of submodules # Use nix-provided libraries instead of submodules
postPatch = lib.optionalString stdenv.isDarwin '' postPatch = lib.optionalString stdenv.isDarwin ''
substituteInPlace CMakeLists.txt \ substituteInPlace CMakeLists.txt \

View file

@ -57,6 +57,5 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ lassulus netali ]; maintainers = with maintainers; [ lassulus netali ];
homepage = "https://vba-m.com/"; homepage = "https://vba-m.com/";
platforms = lib.platforms.linux; platforms = lib.platforms.linux;
badPlatforms = [ "aarch64-linux" ];
}; };
} }

View file

@ -130,7 +130,7 @@ in python.pkgs.buildPythonApplication rec {
vobject vobject
werkzeug werkzeug
xlrd xlrd
XlsxWriter xlsxwriter
xlwt xlwt
zeep zeep
]; ];

View file

@ -22,7 +22,7 @@ mkDerivationWith python3Packages.buildPythonApplication rec {
propagatedBuildInputs = with python3Packages; [ propagatedBuildInputs = with python3Packages; [
cadquery cadquery
Logbook logbook
pyqt5 pyqt5
pyparsing pyparsing
pyqtgraph pyqtgraph

View file

@ -37,24 +37,30 @@ python3.pkgs.buildPythonApplication rec {
meson meson
ninja ninja
pkg-config pkg-config
gobject-introspection
];
buildInputs = [
appstream-glib
gettext
gtk3
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
appstream-glib
python3.pkgs.pygobject3 python3.pkgs.pygobject3
gobject-introspection
gettext
]; ];
# Currently still required for the gobject-introspection setup hook
strictDeps = false;
preInstall = '' preInstall = ''
patchShebangs ../build-aux/meson/postinstall.py patchShebangs ../build-aux/meson/postinstall.py
''; '';
postInstall = '' dontWrapGApps = true;
wrapProgram $out/bin/curtail --prefix PATH : ${lib.makeBinPath [ jpegoptim libwebp optipng pngquant ]}
preFixup = ''
makeWrapperArgs+=(
"''${gappsWrapperArgs[@]}"
"--prefix" "PATH" ":" "${lib.makeBinPath [ jpegoptim libwebp optipng pngquant ]}"
)
''; '';
meta = with lib; { meta = with lib; {

View file

@ -29,7 +29,7 @@ python3.pkgs.buildPythonApplication rec {
wxPython_4_2 wxPython_4_2
dbus-python dbus-python
distro distro
PyChromecast pychromecast
send2trash send2trash
]; ];

View file

@ -22,7 +22,7 @@ python3Packages.buildPythonApplication rec {
wrapQtAppsHook wrapQtAppsHook
python3Packages.setuptools python3Packages.setuptools
python3Packages.rfc3987 python3Packages.rfc3987
python3Packages.JPype1 python3Packages.jpype1
python3Packages.pyqt5 python3Packages.pyqt5
]; ];

View file

@ -25,17 +25,13 @@ python3.pkgs.buildPythonApplication rec {
hash = "sha256-Nok4oqTezO84q9IDZvgi33ZeKfRL+tpg7QEDmp2ZZpU="; hash = "sha256-Nok4oqTezO84q9IDZvgi33ZeKfRL+tpg7QEDmp2ZZpU=";
}; };
buildInputs = [ gobject-introspection gtk3 gdk-pixbuf ]; buildInputs = [ gtk3 gdk-pixbuf ];
nativeBuildInputs = [ wrapGAppsHook ]; nativeBuildInputs = [ wrapGAppsHook gobject-introspection ];
propagatedBuildInputs = (with python3.pkgs; [ pillow pygobject3 pycairo ]); propagatedBuildInputs = (with python3.pkgs; [ pillow pygobject3 pycairo ]);
# Tests are broken # Tests are broken
doCheck = false; doCheck = false;
# Correct wrapper behavior, see https://github.com/NixOS/nixpkgs/issues/56943
# until https://github.com/NixOS/nixpkgs/pull/102613
strictDeps = false;
# prevent double wrapping # prevent double wrapping
dontWrapGApps = true; dontWrapGApps = true;

View file

@ -37,10 +37,6 @@ buildPythonPackage rec {
gtk3 gtk3
]; ];
# https://github.com/NixOS/nixpkgs/issues/56943
# this must be false, otherwise the gobject-introspection hook doesn't run
strictDeps = false;
preDistPhases = [ "fixupIconPath" ]; preDistPhases = [ "fixupIconPath" ];
fixupIconPath = '' fixupIconPath = ''

View file

@ -48,7 +48,6 @@ stdenv.mkDerivation rec {
changelog = "https://github.com/Tom94/tev/releases/tag/v${version}"; changelog = "https://github.com/Tom94/tev/releases/tag/v${version}";
license = licenses.bsd3; license = licenses.bsd3;
platforms = platforms.unix; platforms = platforms.unix;
badPlatforms = [ "aarch64-linux" ]; # fails on Hydra since forever
broken = stdenv.isDarwin; # needs apple frameworks + SDK fix? see #205247 broken = stdenv.isDarwin; # needs apple frameworks + SDK fix? see #205247
maintainers = with maintainers; [ ]; maintainers = with maintainers; [ ];
}; };

View file

@ -99,11 +99,11 @@ stdenv.mkDerivation rec {
setupPyBuildFlags = [ "--enable=load_extension" ]; setupPyBuildFlags = [ "--enable=load_extension" ];
})) }))
beautifulsoup4 beautifulsoup4
cchardet
css-parser css-parser
cssselect cssselect
python-dateutil python-dateutil
dnspython dnspython
faust-cchardet
feedparser feedparser
html2text html2text
html5-parser html5-parser

View file

@ -13,7 +13,7 @@
, pango , pango
, gst-python , gst-python
, kiss-headers , kiss-headers
, Logbook , logbook
, pillow , pillow
, poetry-core , poetry-core
, pygobject3 , pygobject3
@ -47,7 +47,7 @@ buildPythonApplication rec {
propagatedBuildInputs = [ propagatedBuildInputs = [
gst-python gst-python
kiss-headers kiss-headers
Logbook logbook
pillow pillow
poetry-core poetry-core
pygobject3 pygobject3

View file

@ -7,7 +7,7 @@
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
name = "cotp"; pname = "cotp";
version = "1.2.3"; version = "1.2.3";
src = fetchFromGitHub { src = fetchFromGitHub {
@ -17,7 +17,7 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-Pg07iq2jj8cUA4iQsY52cujmUZLYrbTG5Zj+lITxpls="; hash = "sha256-Pg07iq2jj8cUA4iQsY52cujmUZLYrbTG5Zj+lITxpls=";
}; };
cargoHash = "sha256-gH9axiM0Qgl2TdJUpnDONHtU2I5l03SrKEe+2l5V21Y="; cargoHash = "sha256-9jOrDFLnzjxqN2h6e1/qKRn5RQKlfyeKKmjZthQX3jM=";
buildInputs = lib.optionals stdenv.isLinux [ libxcb ] buildInputs = lib.optionals stdenv.isLinux [ libxcb ]
++ lib.optionals stdenv.isDarwin [ AppKit ]; ++ lib.optionals stdenv.isDarwin [ AppKit ];

View file

@ -38,7 +38,7 @@ python3Packages.buildPythonApplication rec {
cython cython
trezor trezor
keepkey keepkey
btchip btchip-python
hidapi hidapi
pyopenssl pyopenssl
pyscard pyscard

View file

@ -71,7 +71,7 @@ python3.pkgs.buildPythonApplication {
requests requests
tlslite-ng tlslite-ng
# plugins # plugins
btchip btchip-python
ckcc-protocol ckcc-protocol
keepkey keepkey
trezor trezor

View file

@ -54,7 +54,7 @@ python3.pkgs.buildPythonApplication {
requests requests
tlslite-ng tlslite-ng
# plugins # plugins
btchip btchip-python
ckcc-protocol ckcc-protocol
keepkey keepkey
trezor trezor

View file

@ -71,7 +71,7 @@ python3.pkgs.buildPythonApplication {
requests requests
tlslite-ng tlslite-ng
# plugins # plugins
btchip btchip-python
ckcc-protocol ckcc-protocol
keepkey keepkey
trezor trezor

View file

@ -11,14 +11,14 @@ let
version = "2.0.3"; version = "2.0.3";
src = old.src.override { src = old.src.override {
inherit version; inherit version;
sha256 = "sha256-4RIMIoyi9VO0cN9KX6knq2YlhGdSYGmYGz6wqRkCaH0="; hash = "sha256-4RIMIoyi9VO0cN9KX6knq2YlhGdSYGmYGz6wqRkCaH0=";
}; };
}); });
flask-wtf = super.flask-wtf.overridePythonAttrs (old: rec { flask-wtf = super.flask-wtf.overridePythonAttrs (old: rec {
version = "0.15.1"; version = "0.15.1";
src = old.src.override { src = old.src.override {
inherit version; inherit version;
sha256 = "ff177185f891302dc253437fe63081e7a46a4e99aca61dfe086fb23e54fff2dc"; hash = "sha256-/xdxhfiRMC3CU0N/5jCB56RqTpmsph3+CG+yPlT/8tw=";
}; };
disabledTests = [ disabledTests = [
"test_outside_request" "test_outside_request"
@ -33,7 +33,7 @@ let
version = "2.0.3"; version = "2.0.3";
src = old.src.override { src = old.src.override {
inherit version; inherit version;
sha256 = "b863f8ff057c522164b6067c9e28b041161b4be5ba4d0daceeaa50a163822d3c"; hash = "sha256-uGP4/wV8UiFktgZ8niiwQRYbS+W6TQ2s7qpQoWOCLTw=";
}; };
}); });
}; };
@ -44,7 +44,7 @@ in python.pkgs.buildPythonApplication rec {
src = python.pkgs.fetchPypi { src = python.pkgs.fetchPypi {
inherit pname version; inherit pname version;
sha256 = "a4e2ee83932755d29ac39c1e74005ec289880fd2d4d2164f09fe2464a294d720"; hash = "sha256-pOLug5MnVdKaw5wedABewomID9LU0hZPCf4kZKKU1yA=";
}; };
propagatedBuildInputs = with python.pkgs; [ propagatedBuildInputs = with python.pkgs; [

View file

@ -18,7 +18,6 @@ python3Packages.buildPythonApplication rec {
pname = "gnome-secrets"; pname = "gnome-secrets";
version = "7.2"; version = "7.2";
format = "other"; format = "other";
strictDeps = false; # https://github.com/NixOS/nixpkgs/issues/56943
src = fetchFromGitLab { src = fetchFromGitLab {
domain = "gitlab.gnome.org"; domain = "gitlab.gnome.org";

View file

@ -1,4 +1,4 @@
{ lib, fetchFromGitHub, python3Packages, intltool, glib, itstool { lib, fetchFromGitHub, python3Packages, intltool, glib, itstool, gtk3
, wrapGAppsHook, gobject-introspection, pango, gdk-pixbuf, atk, wafHook }: , wrapGAppsHook, gobject-introspection, pango, gdk-pixbuf, atk, wafHook }:
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
@ -28,6 +28,7 @@ python3Packages.buildPythonApplication rec {
pango pango
gdk-pixbuf gdk-pixbuf
atk atk
gtk3
]; ];
propagatedBuildInputs = with python3Packages; [ propagatedBuildInputs = with python3Packages; [
@ -37,10 +38,6 @@ python3Packages.buildPythonApplication rec {
dbus-python dbus-python
]; ];
# Setup hooks have trouble with strict deps.
# https://github.com/NixOS/nixpkgs/issues/56943
strictDeps = false;
dontWrapGApps = true; dontWrapGApps = true;
# Arguments to be passed to `makeWrapper`, only used by buildPython* # Arguments to be passed to `makeWrapper`, only used by buildPython*

View file

@ -12,7 +12,7 @@ let
version = "1.0.18"; version = "1.0.18";
src = oldAttrs.src.override { src = oldAttrs.src.override {
inherit version; inherit version;
sha256 = "09h1153wgr5x2ny7ds0w2m81n3bb9j8hjb8sjfnrg506r01clkyx"; hash = "sha256-3U/KAsgGlJetkxotCZFMaw0bUBUc6Ha8Fb3kx0cJASY=";
}; };
}); });
# Use click 7 # Use click 7
@ -20,7 +20,7 @@ let
version = "7.1.2"; version = "7.1.2";
src = old.src.override { src = old.src.override {
inherit version; inherit version;
sha256 = "d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a"; hash = "sha256-0rUlXHxjSbwb0eWeCM0SrLvWPOZJ8liHVXg6qU37axo=";
}; };
}); });
}; };
@ -37,7 +37,7 @@ buildPythonApplication rec {
owner = "donnemartin"; owner = "donnemartin";
repo = pname; repo = pname;
rev = "811a5804c09406465b2b02eab638c08bf5c4fa7f"; rev = "811a5804c09406465b2b02eab638c08bf5c4fa7f";
sha256 = "1g3dfsyk4727d9jh9w6j5r51ag07851cls7v7a7hmdvdixpvbzp6"; hash = "sha256-5v61b49ttwqPOvtoykJBBzwVSi7S8ARlakccMr12bbw=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -11,6 +11,8 @@
, shared-mime-info , shared-mime-info
, wrapGAppsHook , wrapGAppsHook
, wafHook , wafHook
, bash
, dbus
}: }:
with python3Packages; with python3Packages;
@ -33,14 +35,12 @@ buildPythonApplication rec {
itstool # for help pages itstool # for help pages
desktop-file-utils # for update-desktop-database desktop-file-utils # for update-desktop-database
shared-mime-info # for update-mime-info shared-mime-info # for update-mime-info
docutils # for rst2man
dbus # for detection of dbus-send during build
]; ];
buildInputs = [ docutils libwnck keybinder3 ]; buildInputs = [ libwnck keybinder3 bash ];
propagatedBuildInputs = [ pygobject3 gtk3 pyxdg dbus-python pycairo ]; propagatedBuildInputs = [ pygobject3 gtk3 pyxdg dbus-python pycairo ];
# without strictDeps kupfer fails to build: Could not find the python module 'gi.repository.Gtk'
# see https://github.com/NixOS/nixpkgs/issues/56943 for details
strictDeps = false;
postInstall = '' postInstall = ''
gappsWrapperArgs+=( gappsWrapperArgs+=(
"--prefix" "PYTHONPATH" : "${makePythonPath propagatedBuildInputs}" "--prefix" "PYTHONPATH" : "${makePythonPath propagatedBuildInputs}"

View file

@ -84,13 +84,12 @@ buildPythonApplication rec {
sha256 = "sha256-rsiXm7L/M85ot6NrTyy//lMRFlLPJYve9y6Erg9Ugxg="; sha256 = "sha256-rsiXm7L/M85ot6NrTyy//lMRFlLPJYve9y6Erg9Ugxg=";
}; };
nativeBuildInputs = [ wrapGAppsHook ]; nativeBuildInputs = [ wrapGAppsHook gobject-introspection ];
buildInputs = [ buildInputs = [
atk atk
gdk-pixbuf gdk-pixbuf
glib-networking glib-networking
gnome-desktop gnome-desktop
gobject-introspection
gtk3 gtk3
libnotify libnotify
pango pango
@ -139,9 +138,6 @@ buildPythonApplication rec {
"--prefix PATH : ${lib.makeBinPath requiredTools}" "--prefix PATH : ${lib.makeBinPath requiredTools}"
"\${gappsWrapperArgs[@]}" "\${gappsWrapperArgs[@]}"
]; ];
# needed for glib-schemas to work correctly (will crash on dialogues otherwise)
# see https://github.com/NixOS/nixpkgs/issues/56943
strictDeps = false;
meta = with lib; { meta = with lib; {
homepage = "https://lutris.net"; homepage = "https://lutris.net";

View file

@ -31,18 +31,14 @@ python3Packages.buildPythonApplication rec {
runHook postCheck runHook postCheck
''; '';
# Cannot find GSettings schemas when opening settings,
# probably https://github.com/NixOS/nixpkgs/issues/56943
strictDeps = false;
nativeBuildInputs = [ nativeBuildInputs = [
gettext gettext
wrapGAppsHook wrapGAppsHook
gobject-introspection
]; ];
buildInputs = [ buildInputs = [
glib-networking glib-networking
gobject-introspection
gtk3 gtk3
]; ];
@ -64,6 +60,7 @@ python3Packages.buildPythonApplication rec {
]; ];
# Run Linux games using the Steam Runtime by using steam-run in the wrapper # Run Linux games using the Steam Runtime by using steam-run in the wrapper
# FIXME: not working with makeBinaryWrapper
postFixup = '' postFixup = ''
sed -e 's#exec -a "$0"#exec -a "$0" ${steam-run}/bin/steam-run#' -i $out/bin/minigalaxy sed -e 's#exec -a "$0"#exec -a "$0" ${steam-run}/bin/steam-run#' -i $out/bin/minigalaxy
''; '';

View file

@ -38,6 +38,17 @@ let
nativeBuildInputs = [ ]; nativeBuildInputs = [ ];
format = "setuptools"; format = "setuptools";
outputs = [ "out" ]; outputs = [ "out" ];
patches = [ ];
});
# downgrade needed for flask-babel 2.0.0
babel = super.babel.overridePythonAttrs (oldAttrs: rec {
version = "2.11.0";
src = super.fetchPypi {
pname = "Babel";
inherit version;
hash = "sha256-XvSzImsBgN7d7UIpZRyLDho6aig31FoHMnLzE+TPl/Y=";
};
propagatedBuildInputs = [ self.pytz ];
}); });
} }
) )

View file

@ -108,9 +108,6 @@ python3.pkgs.buildPythonApplication rec {
python3.pkgs.nose python3.pkgs.nose
]; ];
# Temporary fix, see https://github.com/NixOS/nixpkgs/issues/56943
strictDeps = false;
doCheck = false; doCheck = false;
preBuild = '' preBuild = ''

View file

@ -4,7 +4,7 @@
# python deps # python deps
, python, buildPythonPackage , python, buildPythonPackage
, alembic, beautifulsoup4, chardet, lxml, Mako, pyenchant , alembic, beautifulsoup4, chardet, lxml, mako, pyenchant
, pyqt5_with_qtwebkit, pyxdg, sip_4, sqlalchemy, sqlalchemy-migrate , pyqt5_with_qtwebkit, pyxdg, sip_4, sqlalchemy, sqlalchemy-migrate
}: }:
@ -37,7 +37,7 @@ buildPythonPackage rec {
beautifulsoup4 beautifulsoup4
chardet chardet
lxml lxml
Mako mako
pyenchant pyenchant
pyqt5_with_qtwebkit pyqt5_with_qtwebkit
pyxdg pyxdg

View file

@ -32,8 +32,6 @@ python3Packages.buildPythonApplication rec {
''; '';
dontWrapGApps = true; dontWrapGApps = true;
# https://github.com/NixOS/nixpkgs/issues/56943
strictDeps = false;
preFixup = '' preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}") makeWrapperArgs+=("''${gappsWrapperArgs[@]}")

View file

@ -26,7 +26,7 @@ let
src = self.fetchPypi { src = self.fetchPypi {
pname = "Flask-Migrate"; pname = "Flask-Migrate";
inherit version; inherit version;
sha256 = "ae2f05671588762dd83a21d8b18c51fe355e86783e24594995ff8d7380dffe38"; hash = "sha256-ri8FZxWIdi3YOiHYsYxR/jVehng+JFlJlf+Nc4Df/jg=";
}; };
}); });
flask-sqlalchemy = super.flask-sqlalchemy.overridePythonAttrs (old: rec { flask-sqlalchemy = super.flask-sqlalchemy.overridePythonAttrs (old: rec {
@ -43,7 +43,7 @@ let
version = "1.0.1"; version = "1.0.1";
src = old.src.override { src = old.src.override {
inherit version; inherit version;
sha256 = "6c80b1e5ad3665290ea39320b91e1be1e0d5f60652b964a3070216de83d2e47c"; hash = "sha256-bICx5a02ZSkOo5MguR4b4eDV9gZSuWSjBwIW3oPS5Hw=";
}; };
nativeCheckInputs = old.nativeCheckInputs ++ (with self; [ nativeCheckInputs = old.nativeCheckInputs ++ (with self; [
requests requests
@ -55,18 +55,18 @@ let
version = "2.11.3"; version = "2.11.3";
src = old.src.override { src = old.src.override {
inherit version; inherit version;
sha256 = "sha256-ptWEM94K6AA0fKsfowQ867q+i6qdKeZo8cdoy4ejM8Y="; hash = "sha256-ptWEM94K6AA0fKsfowQ867q+i6qdKeZo8cdoy4ejM8Y=";
}; };
patches = [ patches = [
# python 3.10 compat fixes. In later upstream releases, but these # python 3.10 compat fixes. In later upstream releases, but these
# are not compatible with flask 1 which we need here :( # are not compatible with flask 1 which we need here :(
(fetchpatch { (fetchpatch {
url = "https://github.com/thmo/jinja/commit/1efb4cc918b4f3d097c376596da101de9f76585a.patch"; url = "https://github.com/thmo/jinja/commit/1efb4cc918b4f3d097c376596da101de9f76585a.patch";
sha256 = "sha256-GFaSvYxgzOEFmnnDIfcf0ImScNTh1lR4lxt2Uz1DYdU="; hash = "sha256-GFaSvYxgzOEFmnnDIfcf0ImScNTh1lR4lxt2Uz1DYdU=";
}) })
(fetchpatch { (fetchpatch {
url = "https://github.com/mkrizek/jinja/commit/bd8bad37d1c0e2d8995a44fd88e234f5340afec5.patch"; url = "https://github.com/mkrizek/jinja/commit/bd8bad37d1c0e2d8995a44fd88e234f5340afec5.patch";
sha256 = "sha256-Uow+gaO+/dH6zavC0X/SsuMAfhTLRWpamVlL87DXDRA="; hash = "sha256-Uow+gaO+/dH6zavC0X/SsuMAfhTLRWpamVlL87DXDRA=";
excludes = [ "CHANGES.rst" ]; excludes = [ "CHANGES.rst" ];
}) })
]; ];
@ -76,21 +76,21 @@ let
version = "2.0.1"; version = "2.0.1";
src = old.src.override { src = old.src.override {
inherit version; inherit version;
sha256 = "sha256-WUxngH+xYjizDES99082wCzfItHIzake+KDtjav1Ygo="; hash = "sha256-WUxngH+xYjizDES99082wCzfItHIzake+KDtjav1Ygo=";
}; };
}); });
itsdangerous = super.itsdangerous.overridePythonAttrs (old: rec { itsdangerous = super.itsdangerous.overridePythonAttrs (old: rec {
version = "1.1.0"; version = "1.1.0";
src = old.src.override { src = old.src.override {
inherit version; inherit version;
sha256 = "321b033d07f2a4136d3ec762eac9f16a10ccd60f53c0c91af90217ace7ba1f19"; hash = "sha256-MhsDPQfypBNtPsdi6snxahDM1g9TwMka+QIXrOe6Hxk=";
}; };
}); });
flask = super.flask.overridePythonAttrs (old: rec { flask = super.flask.overridePythonAttrs (old: rec {
version = "1.1.4"; version = "1.1.4";
src = old.src.override { src = old.src.override {
inherit version; inherit version;
sha256 = "0fbeb6180d383a9186d0d6ed954e0042ad9f18e0e8de088b2b419d526927d196"; hash = "sha256-D762GA04OpGG0NbtlU4AQq2fGODo3giLK0GdUmkn0ZY=";
}; };
}); });
sqlsoup = super.sqlsoup.overrideAttrs ({ meta ? {}, ... }: { sqlsoup = super.sqlsoup.overrideAttrs ({ meta ? {}, ... }: {
@ -100,13 +100,13 @@ let
version = "7.1.2"; version = "7.1.2";
src = old.src.override { src = old.src.override {
inherit version; inherit version;
sha256 = "d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a"; hash = "sha256-0rUlXHxjSbwb0eWeCM0SrLvWPOZJ8liHVXg6qU37axo=";
}; };
}); });
# Now requires `lingua` as check input that requires a newer `click`, # Now requires `lingua` as check input that requires a newer `click`,
# however `click-7` is needed by the older flask we need here. Since it's just # however `click-7` is needed by the older flask we need here. Since it's just
# for the test-suite apparently, let's skip it for now. # for the test-suite apparently, let's skip it for now.
Mako = super.Mako.overridePythonAttrs (lib.const { mako = super.mako.overridePythonAttrs (lib.const {
nativeCheckInputs = []; nativeCheckInputs = [];
doCheck = false; doCheck = false;
}); });
@ -165,7 +165,7 @@ python3'.pkgs.buildPythonPackage rec {
owner = pname; owner = pname;
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-SYXw8PBCb514v3rcy15W/vZS5JyMsu81D2sJmviLRtw="; hash = "sha256-SYXw8PBCb514v3rcy15W/vZS5JyMsu81D2sJmviLRtw=";
fetchSubmodules = true; fetchSubmodules = true;
}; };

View file

@ -1,5 +1,5 @@
{ lib { lib
, python3 , python310
, fetchFromGitHub , fetchFromGitHub
, gdk-pixbuf , gdk-pixbuf
, gnome , gnome
@ -17,11 +17,19 @@
}: }:
let let
python = python3.override { python = python310.override {
packageOverrides = (self: super: { packageOverrides = (self: super: {
matplotlib = super.matplotlib.override { matplotlib = super.matplotlib.override {
enableGtk3 = true; enableGtk3 = true;
}; };
sqlalchemy = super.sqlalchemy.overridePythonAttrs (old: rec {
version = "1.4.46";
src = self.fetchPypi {
pname = "SQLAlchemy";
inherit version;
hash = "sha256-aRO4JH2KKS74MVFipRkx4rQM6RaB8bbxj2lwRSAMSjA=";
};
});
}); });
}; };
in python.pkgs.buildPythonApplication rec { in python.pkgs.buildPythonApplication rec {
@ -77,7 +85,7 @@ in python.pkgs.buildPythonApplication rec {
TZ=Europe/Kaliningrad \ TZ=Europe/Kaliningrad \
LC_ALL=en_US.UTF-8 \ LC_ALL=en_US.UTF-8 \
xvfb-run -s '-screen 0 800x600x24' \ xvfb-run -s '-screen 0 800x600x24' \
${python3.interpreter} setup.py test ${python.interpreter} setup.py test
''; '';
meta = with lib; { meta = with lib; {

View file

@ -12,7 +12,6 @@ python3.pkgs.buildPythonApplication rec {
pname = "wike"; pname = "wike";
version = "1.7.1"; version = "1.7.1";
format = "other"; format = "other";
strictDeps = false; # https://github.com/NixOS/nixpkgs/issues/56943
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "hugolabe"; owner = "hugolabe";

View file

@ -472,9 +472,6 @@ buildStdenv.mkDerivation ({
separateDebugInfo = enableDebugSymbols; separateDebugInfo = enableDebugSymbols;
enableParallelBuilding = true; enableParallelBuilding = true;
# https://github.com/NixOS/nixpkgs/issues/201254
NIX_LDFLAGS = if (with stdenv; isAarch64 && isLinux) then [ "-lgcc" ] else null;
# tests were disabled in configureFlags # tests were disabled in configureFlags
doCheck = false; doCheck = false;
@ -501,41 +498,6 @@ buildStdenv.mkDerivation ({
gappsWrapperArgs+=(--argv0 "$out/bin/.${binaryName}-wrapped") gappsWrapperArgs+=(--argv0 "$out/bin/.${binaryName}-wrapped")
''; '';
# Workaround: The separateDebugInfo hook skips artifacts whose build ID's length is not 40.
# But we got 16-length build ID here. The function body is mainly copied from pkgs/build-support/setup-hooks/separate-debug-info.sh
# Remove it when https://github.com/NixOS/nixpkgs/pull/146275 is merged.
preFixup = lib.optionalString enableDebugSymbols ''
_separateDebugInfo() {
[ -e "$prefix" ] || return 0
local dst="''${debug:-$out}"
if [ "$prefix" = "$dst" ]; then return 0; fi
dst="$dst/lib/debug/.build-id"
# Find executables and dynamic libraries.
local i
while IFS= read -r -d $'\0' i; do
if ! isELF "$i"; then continue; fi
# Extract the Build ID. FIXME: there's probably a cleaner way.
local id="$($READELF -n "$i" | sed 's/.*Build ID: \([0-9a-f]*\).*/\1/; t; d')"
if [[ -z "$id" ]]; then
echo "could not find build ID of $i, skipping" >&2
continue
fi
# Extract the debug info.
echo "separating debug info from $i (build ID $id)"
mkdir -p "$dst/''${id:0:2}"
$OBJCOPY --only-keep-debug "$i" "$dst/''${id:0:2}/''${id:2}.debug"
# Also a create a symlink <original-name>.debug.
ln -sfn ".build-id/''${id:0:2}/''${id:2}.debug" "$dst/../$(basename "$i")"
done < <(find "$prefix" -type f -print0)
}
'';
postFixup = lib.optionalString crashreporterSupport '' postFixup = lib.optionalString crashreporterSupport ''
patchelf --add-rpath "${lib.makeLibraryPath [ curl ]}" $out/lib/${binaryName}/crashreporter patchelf --add-rpath "${lib.makeLibraryPath [ curl ]}" $out/lib/${binaryName}/crashreporter
''; '';

View file

@ -57,9 +57,6 @@ stdenv.mkDerivation {
"-Daligned_alloc=_mm_malloc" "-Daligned_alloc=_mm_malloc"
]); ]);
# https://github.com/NixOS/nixpkgs/issues/201254
NIX_LDFLAGS = lib.optionalString (stdenv.isLinux && stdenv.isAarch64 && stdenv.cc.isGNU) "-lgcc";
# https://github.com/SerenityOS/serenity/issues/10055 # https://github.com/SerenityOS/serenity/issues/10055
postInstall = lib.optionalString stdenv.isDarwin '' postInstall = lib.optionalString stdenv.isDarwin ''
install_name_tool -add_rpath $out/lib $out/bin/ladybird install_name_tool -add_rpath $out/lib $out/bin/ladybird

View file

@ -66,9 +66,6 @@ python3.pkgs.buildPythonApplication rec {
requests requests
]; ];
# https://github.com/NixOS/nixpkgs/issues/56943
strictDeps = false;
dontWrapGApps = true; dontWrapGApps = true;
preFixup = '' preFixup = ''

View file

@ -30,7 +30,7 @@ python3Packages.buildPythonApplication rec {
propagatedBuildInputs = with python3Packages; [ propagatedBuildInputs = with python3Packages; [
# See https://github.com/Flexget/Flexget/blob/master/requirements.txt # See https://github.com/Flexget/Flexget/blob/master/requirements.txt
APScheduler apscheduler
beautifulsoup4 beautifulsoup4
click click
colorama colorama
@ -44,7 +44,7 @@ python3Packages.buildPythonApplication rec {
packaging packaging
psutil psutil
pynzb pynzb
PyRSS2Gen pyrss2gen
python-dateutil python-dateutil
pyyaml pyyaml
rebulk rebulk

View file

@ -64,9 +64,6 @@ python3.pkgs.buildPythonApplication rec {
--replace "gtk-update-icon-cache" "gtk4-update-icon-cache" --replace "gtk-update-icon-cache" "gtk4-update-icon-cache"
''; '';
# Fix setup-hooks https://github.com/NixOS/nixpkgs/issues/56943
strictDeps = false;
meta = with lib; { meta = with lib; {
description = "A Reddit app, built with Python, GTK and Handy; Created with mobile Linux in mind"; description = "A Reddit app, built with Python, GTK and Handy; Created with mobile Linux in mind";
maintainers = with maintainers; [ dasj19 ]; maintainers = with maintainers; [ dasj19 ];

View file

@ -5,7 +5,7 @@
}: }:
buildGoModule rec { buildGoModule rec {
name = "gossa"; pname = "gossa";
version = "0.2.2"; version = "0.2.2";
src = fetchFromGitHub { src = fetchFromGitHub {

View file

@ -10,7 +10,7 @@
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "cinny-desktop"; pname = "cinny-desktop";
version = "2.2.4"; version = "2.2.4";
src = fetchurl { src = fetchurl {

View file

@ -51,7 +51,7 @@ buildPythonApplication rec {
dbus-python dbus-python
pyxdg pyxdg
python-olm python-olm
]; ] ++ matrix-nio.optional-dependencies.e2e;
meta = with lib; { meta = with lib; {
description = "Simple but convenient CLI-based Matrix client app for sending and receiving"; description = "Simple but convenient CLI-based Matrix client app for sending and receiving";

View file

@ -66,7 +66,7 @@ mkDerivation rec {
watchgod watchgod
dbus-python dbus-python
matrix-nio matrix-nio
]; ] ++ matrix-nio.optional-dependencies.e2e;
qmakeFlags = [ qmakeFlags = [
"PREFIX=${placeholder "out"}" "PREFIX=${placeholder "out"}"

View file

@ -83,9 +83,6 @@ stdenv.mkDerivation rec {
"-DCOMPILE_QML=ON" # see https://github.com/Nheko-Reborn/nheko/issues/389 "-DCOMPILE_QML=ON" # see https://github.com/Nheko-Reborn/nheko/issues/389
]; ];
# https://github.com/NixOS/nixpkgs/issues/201254
NIX_LDFLAGS = lib.optionalString (stdenv.isLinux && stdenv.isAarch64 && stdenv.cc.isGNU) "-lgcc";
preFixup = lib.optionalString voipSupport '' preFixup = lib.optionalString voipSupport ''
# add gstreamer plugins path to the wrapper # add gstreamer plugins path to the wrapper
qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0") qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")

View file

@ -1,5 +1,5 @@
{ lib, stdenv, buildPythonApplication, fetchFromGitHub, pythonOlder, { lib, stdenv, buildPythonApplication, fetchFromGitHub, pythonOlder,
attrs, aiohttp, appdirs, click, keyring, Logbook, peewee, janus, attrs, aiohttp, appdirs, click, keyring, logbook, peewee, janus,
prompt-toolkit, matrix-nio, dbus-python, pydbus, notify2, pygobject3, prompt-toolkit, matrix-nio, dbus-python, pydbus, notify2, pygobject3,
setuptools, installShellFiles, nixosTests, setuptools, installShellFiles, nixosTests,
@ -29,12 +29,14 @@ buildPythonApplication rec {
click click
janus janus
keyring keyring
Logbook logbook
matrix-nio matrix-nio
peewee peewee
prompt-toolkit prompt-toolkit
setuptools setuptools
] ++ lib.optionals enableDbusUi [ ]
++ matrix-nio.optional-dependencies.e2e
++ lib.optionals enableDbusUi [
dbus-python dbus-python
notify2 notify2
pygobject3 pygobject3

View file

@ -8,7 +8,7 @@
, future , future
, atomicwrites , atomicwrites
, attrs , attrs
, Logbook , logbook
, pygments , pygments
, matrix-nio , matrix-nio
, aiohttp , aiohttp
@ -45,12 +45,12 @@ in buildPythonPackage {
future future
atomicwrites atomicwrites
attrs attrs
Logbook logbook
pygments pygments
matrix-nio matrix-nio
aiohttp aiohttp
requests requests
]; ] ++ matrix-nio.optional-dependencies.e2e;
passthru.scripts = [ "matrix.py" ]; passthru.scripts = [ "matrix.py" ];

View file

@ -13,6 +13,7 @@
, glib , glib
, gobject-introspection , gobject-introspection
, folks , folks
, bash
}: }:
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
@ -39,6 +40,7 @@ python3Packages.buildPythonApplication rec {
libsecret libsecret
gnome-online-accounts gnome-online-accounts
folks folks
bash
]; ];
nativeBuildInputs = [ nativeBuildInputs = [
@ -59,9 +61,6 @@ python3Packages.buildPythonApplication rec {
# See https://nixos.org/nixpkgs/manual/#ssec-gnome-common-issues-double-wrapped # See https://nixos.org/nixpkgs/manual/#ssec-gnome-common-issues-double-wrapped
dontWrapGApps = true; dontWrapGApps = true;
# https://github.com/NixOS/nixpkgs/issues/56943
strictDeps = false;
preFixup = '' preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}") makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
''; '';

View file

@ -39,7 +39,7 @@ python3Packages.buildPythonApplication rec {
}; };
propagatedBuildInputs = with python3Packages; ([ propagatedBuildInputs = with python3Packages; ([
PyChromecast pychromecast
psutil psutil
mutagen mutagen
flask flask

View file

@ -22,7 +22,7 @@ python3Packages.buildPythonPackage rec {
aiohttp matrix-api-async aioredis aiosqlite arrow pyyaml motor regex aiohttp matrix-api-async aioredis aiosqlite arrow pyyaml motor regex
mattermostdriver setuptools voluptuous ibm-watson tailer multidict mattermostdriver setuptools voluptuous ibm-watson tailer multidict
watchgod get-video-properties appdirs bitstring matrix-nio watchgod get-video-properties appdirs bitstring matrix-nio
]; ] ++ matrix-nio.optional-dependencies.e2e;
passthru.python = python3Packages.python; passthru.python = python3Packages.python;

View file

@ -27,7 +27,7 @@ let
propagatedBuildInputs = with pypkgs; [ propagatedBuildInputs = with pypkgs; [
twisted twisted
Mako mako
chardet chardet
pyxdg pyxdg
pyopenssl pyopenssl

View file

@ -40,7 +40,7 @@ python3Packages.buildPythonApplication rec {
ipy ipy
pyperclip pyperclip
] ++ ] ++
lib.optional useGeoIP GeoIP; lib.optional useGeoIP geoip;
dontBuild = true; dontBuild = true;
doCheck = false; doCheck = false;

View file

@ -41,8 +41,6 @@ buildPythonApplication rec {
]; ];
buildInputs = [ buildInputs = [
# To avoid enabling strictDeps = false (#56943)
gobject-introspection
librsvg librsvg
pango pango
webkitgtk webkitgtk

View file

@ -67,7 +67,6 @@ python3Packages.buildPythonApplication rec {
''; '';
format = "other"; format = "other";
strictDeps = false; # gobject-introspection does not run with strictDeps (https://github.com/NixOS/nixpkgs/issues/56943)
checkPhase = "xvfb-run pytest ../tests/"; checkPhase = "xvfb-run pytest ../tests/";

View file

@ -194,10 +194,12 @@ in
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
env.NIX_CFLAGS_COMPILE = toString [ env.NIX_CFLAGS_COMPILE = toString ([
"-I${librdf_rasqal}/include/rasqal" # librdf_redland refers to rasqal.h instead of rasqal/rasqal.h "-I${librdf_rasqal}/include/rasqal" # librdf_redland refers to rasqal.h instead of rasqal/rasqal.h
"-fno-visibility-inlines-hidden" # https://bugs.documentfoundation.org/show_bug.cgi?id=78174#c10 "-fno-visibility-inlines-hidden" # https://bugs.documentfoundation.org/show_bug.cgi?id=78174#c10
]; ] ++ optionals (stdenv.isLinux && stdenv.isAarch64 && variant == "still") [
"-O2" # https://bugs.gentoo.org/727188
]);
tarballPath = "external/tarballs"; tarballPath = "external/tarballs";

View file

@ -14,9 +14,8 @@ python3Packages.buildPythonApplication rec {
sha256 = "sha256-iOF11/fhQYlvnpWJidJS1yJVavF7xLxvBl59VCh9A4U="; sha256 = "sha256-iOF11/fhQYlvnpWJidJS1yJVavF7xLxvBl59VCh9A4U=";
}; };
buildInputs = [ gtk3 gobject-introspection gnome.adwaita-icon-theme ]; buildInputs = [ gtk3 gnome.adwaita-icon-theme ];
propagatedBuildInputs = with python3Packages; [ pyxdg pygobject3 ]; propagatedBuildInputs = with python3Packages; [ pyxdg pygobject3 ];
# see https://github.com/NixOS/nixpkgs/issues/56943#issuecomment-1131643663
nativeBuildInputs = [ gobject-introspection wrapGAppsHook ]; nativeBuildInputs = [ gobject-introspection wrapGAppsHook ];
dontWrapGApps = true; dontWrapGApps = true;

View file

@ -6,7 +6,7 @@
, php}: , php}:
stdenvNoCC.mkDerivation rec { stdenvNoCC.mkDerivation rec {
name = "cloudlog"; pname = "cloudlog";
version = "2.4"; version = "2.4";
src = fetchFromGitHub { src = fetchFromGitHub {

View file

@ -41,7 +41,7 @@ gnuradio.pkgs.mkDerivation rec {
cmake cmake
pkg-config pkg-config
gnuradio.unwrapped.python gnuradio.unwrapped.python
gnuradio.unwrapped.python.pkgs.Mako gnuradio.unwrapped.python.pkgs.mako
gnuradio.unwrapped.python.pkgs.six gnuradio.unwrapped.python.pkgs.six
]; ];
nativeCheckInputs = [ nativeCheckInputs = [

View file

@ -67,7 +67,7 @@ let
# building with boost 1.7x fails # building with boost 1.7x fails
++ lib.optionals (!(hasFeature "gr-qtgui")) [ icu ]; ++ lib.optionals (!(hasFeature "gr-qtgui")) [ icu ];
pythonNative = with python.pkgs; [ pythonNative = with python.pkgs; [
Mako mako
six six
]; ];
}; };
@ -118,7 +118,7 @@ let
gnuradio-companion = { gnuradio-companion = {
pythonRuntime = with python.pkgs; [ pythonRuntime = with python.pkgs; [
pyyaml pyyaml
Mako mako
numpy numpy
pygobject3 pygobject3
]; ];

View file

@ -71,7 +71,7 @@ let
# building with boost 1.7x fails # building with boost 1.7x fails
++ lib.optionals (!(hasFeature "gr-qtgui")) [ icu ]; ++ lib.optionals (!(hasFeature "gr-qtgui")) [ icu ];
pythonNative = with python.pkgs; [ pythonNative = with python.pkgs; [
Mako mako
six six
]; ];
}; };
@ -118,7 +118,7 @@ let
gnuradio-companion = { gnuradio-companion = {
pythonRuntime = with python.pkgs; [ pythonRuntime = with python.pkgs; [
pyyaml pyyaml
Mako mako
numpy numpy
pygobject3 pygobject3
]; ];

View file

@ -73,7 +73,7 @@ let
# building with boost 1.7x fails # building with boost 1.7x fails
++ lib.optionals (!(hasFeature "gr-qtgui")) [ icu ]; ++ lib.optionals (!(hasFeature "gr-qtgui")) [ icu ];
pythonNative = with python.pkgs; [ pythonNative = with python.pkgs; [
Mako mako
six six
]; ];
}; };
@ -120,7 +120,7 @@ let
gnuradio-companion = { gnuradio-companion = {
pythonRuntime = with python.pkgs; [ pythonRuntime = with python.pkgs; [
pyyaml pyyaml
Mako mako
numpy numpy
pygobject3 pygobject3
]; ];

View file

@ -85,8 +85,8 @@ stdenv.mkDerivation rec {
++ [ (lib.optionalString stdenv.isAarch32 "-DCMAKE_CXX_FLAGS=-Wno-psabi") ] ++ [ (lib.optionalString stdenv.isAarch32 "-DCMAKE_CXX_FLAGS=-Wno-psabi") ]
; ;
# Python + Mako are always required for the build itself but not necessary for runtime. # Python + mako are always required for the build itself but not necessary for runtime.
pythonEnv = python3.withPackages (ps: with ps; [ Mako ] pythonEnv = python3.withPackages (ps: with ps; [ mako ]
++ optionals (enableLibuhd_Python_api) [ numpy setuptools ] ++ optionals (enableLibuhd_Python_api) [ numpy setuptools ]
++ optionals (enableUtils) [ requests six ] ++ optionals (enableUtils) [ requests six ]
); );

View file

@ -83,8 +83,8 @@ stdenv.mkDerivation rec {
++ [ (lib.optionalString stdenv.isAarch32 "-DCMAKE_CXX_FLAGS=-Wno-psabi") ] ++ [ (lib.optionalString stdenv.isAarch32 "-DCMAKE_CXX_FLAGS=-Wno-psabi") ]
; ;
# Python + Mako are always required for the build itself but not necessary for runtime. # Python + mako are always required for the build itself but not necessary for runtime.
pythonEnv = python3.withPackages (ps: with ps; [ Mako ] pythonEnv = python3.withPackages (ps: with ps; [ mako ]
++ optionals (enablePythonApi) [ numpy setuptools ] ++ optionals (enablePythonApi) [ numpy setuptools ]
++ optionals (enableUtils) [ requests six ] ++ optionals (enableUtils) [ requests six ]
); );

View file

@ -36,7 +36,7 @@ python3Packages.buildPythonApplication rec {
] ++ (with python3Packages; [ ] ++ (with python3Packages; [
biopython biopython
psutil psutil
XlsxWriter xlsxwriter
]); ]);
# Tests rely on some of the databases being available, which is not bundled # Tests rely on some of the databases being available, which is not bundled

View file

@ -1,13 +1,13 @@
{ lib, stdenv, fetchFromGitHub }: { lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "muscle"; pname = "muscle";
version = "5.1.0"; version = "5.1.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "rcedgar"; owner = "rcedgar";
repo = "${name}"; repo = pname;
rev = "${version}"; rev = "${version}";
hash = "sha256-NpnJziZXga/T5OavUt3nQ5np8kJ9CFcSmwyg4m6IJsk="; hash = "sha256-NpnJziZXga/T5OavUt3nQ5np8kJ9CFcSmwyg4m6IJsk=";
}; };

View file

@ -1,12 +1,12 @@
{ lib, stdenv, fetchFromGitHub, cmake }: { lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "veryfasttree"; pname = "veryfasttree";
version = "3.1.1"; version = "3.1.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "citiususc"; owner = "citiususc";
repo = "${name}"; repo = pname;
rev = "v${version}"; rev = "v${version}";
hash = "sha256-AOzbxUnrn1qgscjdOKf4dordnSKtIg3nSVaYWK1jbuc="; hash = "sha256-AOzbxUnrn1qgscjdOKf4dordnSKtIg3nSVaYWK1jbuc=";
}; };

View file

@ -46,7 +46,7 @@ in python.pkgs.buildPythonApplication rec {
numpy numpy
packaging packaging
pyqt4 pyqt4
Rtree rtree
scipy scipy
setuptools setuptools
shapely shapely

View file

@ -19,7 +19,7 @@
, setuptools , setuptools
, textx , textx
, xlrd , xlrd
, XlsxWriter , xlsxwriter
, pytestCheckHook , pytestCheckHook
}: }:
@ -70,7 +70,7 @@ buildPythonApplication rec {
setuptools setuptools
textx textx
xlrd xlrd
XlsxWriter xlsxwriter
]; ];
nativeCheckInputs = [ nativeCheckInputs = [

View file

@ -1,7 +1,7 @@
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libiconv }: { lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libiconv }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "readstat"; pname = "readstat";
version = "1.1.9"; version = "1.1.9";
src = fetchFromGitHub { src = fetchFromGitHub {

View file

@ -22,7 +22,6 @@ python3Packages.buildPythonApplication rec {
pname = "bada-bib"; pname = "bada-bib";
version = "0.8.0"; version = "0.8.0";
format = "other"; format = "other";
strictDeps = false; # https://github.com/NixOS/nixpkgs/issues/56943
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "RogerCrocker"; owner = "RogerCrocker";

View file

@ -210,9 +210,6 @@ stdenv.mkDerivation rec {
"-Druntime_cxxmodules=OFF" "-Druntime_cxxmodules=OFF"
]; ];
# https://github.com/NixOS/nixpkgs/issues/201254
NIX_LDFLAGS = lib.optionalString (stdenv.isLinux && stdenv.isAarch64 && stdenv.cc.isGNU) "-lgcc";
# Workaround the xrootd runpath bug #169677 by prefixing [DY]LD_LIBRARY_PATH with ${lib.makeLibraryPath xrootd}. # Workaround the xrootd runpath bug #169677 by prefixing [DY]LD_LIBRARY_PATH with ${lib.makeLibraryPath xrootd}.
# TODO: Remove the [DY]LDLIBRARY_PATH prefix for xrootd when #200830 get merged. # TODO: Remove the [DY]LDLIBRARY_PATH prefix for xrootd when #200830 get merged.
postInstall = '' postInstall = ''

View file

@ -26,11 +26,6 @@ python3.pkgs.buildPythonApplication rec {
sha256 = "sha256-BW13fBH26UqMPMjV8JC4QkpgzyoPfCpAfSkJD68uOZU="; sha256 = "sha256-BW13fBH26UqMPMjV8JC4QkpgzyoPfCpAfSkJD68uOZU=";
}; };
# Strict deps breaks guake
# See https://github.com/NixOS/nixpkgs/issues/59930
# and https://github.com/NixOS/nixpkgs/issues/56943
strictDeps = false;
nativeBuildInputs = [ nativeBuildInputs = [
gobject-introspection gobject-introspection
wrapGAppsHook wrapGAppsHook

View file

@ -4,14 +4,14 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "xterm"; pname = "xterm";
version = "378"; version = "379";
src = fetchurl { src = fetchurl {
urls = [ urls = [
"ftp://ftp.invisible-island.net/xterm/${pname}-${version}.tgz" "ftp://ftp.invisible-island.net/xterm/${pname}-${version}.tgz"
"https://invisible-mirror.net/archives/xterm/${pname}-${version}.tgz" "https://invisible-mirror.net/archives/xterm/${pname}-${version}.tgz"
]; ];
hash = "sha256-ZJ37/V7dDtnkfPjk2VO0sNPDC8KAFm38T/0Ulz/sPpI="; hash = "sha256-p93ydO6EuX+xKDZ1AJ1Tyi0CoP/VzlpRGNr8NiPrsxA=";
}; };
strictDeps = true; strictDeps = true;

View file

@ -20,6 +20,11 @@ python3.pkgs.buildPythonApplication rec {
nativeCheckInputs = [ python3.pkgs.pytestCheckHook git mercurial]; nativeCheckInputs = [ python3.pkgs.pytestCheckHook git mercurial];
disabledTests = [
# fails due to more aggressive setuptools version specifier validation
"test_parse_default_pattern"
];
meta = with lib; { meta = with lib; {
description = "Bump version numbers in project files"; description = "Bump version numbers in project files";
homepage = "https://pypi.org/project/bumpver/"; homepage = "https://pypi.org/project/bumpver/";

View file

@ -52,10 +52,6 @@ python3.pkgs.buildPythonApplication rec {
pycairo pycairo
]; ];
# gobject-introspection and some other similar setup hooks do not currently work with strictDeps.
# https://github.com/NixOS/nixpkgs/issues/56943
strictDeps = false;
postPatch = '' postPatch = ''
patchShebangs meson_shebang_normalisation.py patchShebangs meson_shebang_normalisation.py
''; '';

View file

@ -21,11 +21,11 @@ let
version = "7.1.2"; version = "7.1.2";
src = oldAttrs.src.override { src = oldAttrs.src.override {
inherit version; inherit version;
sha256 = "06kbzd6sjfkqan3miwj9wqyddfxc2b6hi7p5s4dvqjb3gif2bdfj"; hash = "sha256-0rUlXHxjSbwb0eWeCM0SrLvWPOZJ8liHVXg6qU37axo=";
}; };
}); });
PyChromecast = super.PyChromecast.overridePythonAttrs (oldAttrs: rec { pychromecast = super.pychromecast.overridePythonAttrs (oldAttrs: rec {
version = "9.2.0"; version = "9.2.0";
src = oldAttrs.src.override { src = oldAttrs.src.override {
inherit version; inherit version;
@ -40,6 +40,7 @@ with py.pkgs;
buildPythonApplication rec { buildPythonApplication rec {
pname = "catt"; pname = "catt";
version = "0.12.7"; version = "0.12.7";
format = "setuptools";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
@ -49,7 +50,7 @@ buildPythonApplication rec {
propagatedBuildInputs = [ propagatedBuildInputs = [
click click
ifaddr ifaddr
PyChromecast pychromecast
protobuf protobuf
requests requests
yt-dlp yt-dlp

View file

@ -15,17 +15,8 @@ in buildPythonApplication rec {
sha256 = "1xb7acjphvn4ya8fgjsvag5gzi9a6c2famfl0ffr8nhb9y8ig9mg"; sha256 = "1xb7acjphvn4ya8fgjsvag5gzi9a6c2famfl0ffr8nhb9y8ig9mg";
}; };
# Temporary fix
# See https://github.com/NixOS/nixpkgs/issues/61578
# and https://github.com/NixOS/nixpkgs/issues/56943
strictDeps = false;
nativeBuildInputs = [ nativeBuildInputs = [
gettext wrapGAppsHook gettext wrapGAppsHook
# Temporary fix
# See https://github.com/NixOS/nixpkgs/issues/61578
# and https://github.com/NixOS/nixpkgs/issues/56943
gobject-introspection gobject-introspection
]; ];

View file

@ -12,7 +12,7 @@ buildPythonApplication rec {
nativeBuildInputs = [ wrapGAppsHook ]; nativeBuildInputs = [ wrapGAppsHook ];
propagatedBuildInputs = [ propagatedBuildInputs = [
PyChromecast bottle pycaption paste html5lib pygobject3 dbus-python pychromecast bottle pycaption paste html5lib pygobject3 dbus-python
gtk3 gobject-introspection gtk3 gobject-introspection
]; ];

View file

@ -40,9 +40,6 @@ python3Packages.buildPythonApplication rec {
propagatedBuildInputs = with python3Packages; [ pygobject3 pyxdg pycairo dbus-python xlib ]; propagatedBuildInputs = with python3Packages; [ pygobject3 pyxdg pycairo dbus-python xlib ];
# workaround https://github.com/NixOS/nixpkgs/issues/56943
strictDeps = false;
patches = [ patches = [
# Fix paths # Fix paths
(substituteAll { (substituteAll {

View file

@ -44,10 +44,10 @@ python3.pkgs.buildPythonApplication rec {
itstool itstool
python3 python3
wrapGAppsHook wrapGAppsHook
gobject-introspection
]; ];
buildInputs = [ buildInputs = [
gobject-introspection
gtk3 gtk3
libpeas libpeas
librsvg librsvg
@ -78,12 +78,6 @@ python3.pkgs.buildPythonApplication rec {
patchShebangs ./getenvvar.py patchShebangs ./getenvvar.py
''; '';
# Fixes error
# Couldnt recognize the image file format for file ".../share/pitivi/pixmaps/asset-proxied.svg"
# at startup, see https://github.com/NixOS/nixpkgs/issues/56943
# and https://github.com/NixOS/nixpkgs/issues/89691#issuecomment-714398705.
strictDeps = false;
passthru = { passthru = {
updateScript = gnome.updateScript { updateScript = gnome.updateScript {
packageName = "pitivi"; packageName = "pitivi";

View file

@ -13,7 +13,7 @@ buildPythonApplication rec {
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-TIzZ0h0jdBJ5PRi9MxEASe6a+Nqz/iwhO70HM5WbCbc="; hash = "sha256-TIzZ0h0jdBJ5PRi9MxEASe6a+Nqz/iwhO70HM5WbCbc=";
}; };
# lots of networking and other fails # lots of networking and other fails

View file

@ -58,6 +58,10 @@ stdenv.mkDerivation rec {
# crypto/jitterentropy.c:54:3: error: #error "The CPU Jitter random number generator must not be compiled with optimizations. See documentation. Use the compiler switch -O0 for compiling jitterentropy.c." # crypto/jitterentropy.c:54:3: error: #error "The CPU Jitter random number generator must not be compiled with optimizations. See documentation. Use the compiler switch -O0 for compiling jitterentropy.c."
hardeningDisable = [ "format" "fortify" ]; hardeningDisable = [ "format" "fortify" ];
# Fixes the following error when using liblkl-hijack.so on aarch64-linux:
# symbol lookup error: liblkl-hijack.so: undefined symbol: __aarch64_ldadd4_sync
env.NIX_CFLAGS_LINK = "-lgcc_s";
makeFlags = [ makeFlags = [
"-C tools/lkl" "-C tools/lkl"
"CC=${stdenv.cc}/bin/${stdenv.cc.targetPrefix}cc" "CC=${stdenv.cc}/bin/${stdenv.cc.targetPrefix}cc"

View file

@ -26,7 +26,6 @@ python3.pkgs.buildPythonApplication rec {
wrapGAppsHook wrapGAppsHook
libvirt-glib vte dconf gtk-vnc gnome.adwaita-icon-theme avahi libvirt-glib vte dconf gtk-vnc gnome.adwaita-icon-theme avahi
gsettings-desktop-schemas libosinfo gtksourceview4 gsettings-desktop-schemas libosinfo gtksourceview4
gobject-introspection # Temporary fix, see https://github.com/NixOS/nixpkgs/issues/56943
] ++ lib.optional spiceSupport spice-gtk; ] ++ lib.optional spiceSupport spice-gtk;
propagatedBuildInputs = with python3.pkgs; [ propagatedBuildInputs = with python3.pkgs; [

View file

@ -25,7 +25,9 @@
, nativeTools, noLibc ? false, nativeLibc, nativePrefix ? "" , nativeTools, noLibc ? false, nativeLibc, nativePrefix ? ""
, propagateDoc ? bintools != null && bintools ? man , propagateDoc ? bintools != null && bintools ? man
, extraPackages ? [], extraBuildCommands ? "" , extraPackages ? [], extraBuildCommands ? ""
, isGNU ? bintools.isGNU or false, isLLVM ? bintools.isLLVM or false , isGNU ? bintools.isGNU or false
, isLLVM ? bintools.isLLVM or false
, isCCTools ? bintools.isCCTools or false
, buildPackages ? {} , buildPackages ? {}
, targetPackages ? {} , targetPackages ? {}
, useMacosReexportHack ? false , useMacosReexportHack ? false
@ -139,6 +141,7 @@ stdenv.mkDerivation {
local dst="$1" local dst="$1"
local wrapper="$2" local wrapper="$2"
export prog="$3" export prog="$3"
export use_response_file_by_default=${if isCCTools then "1" else "0"}
substituteAll "$wrapper" "$out/bin/$dst" substituteAll "$wrapper" "$out/bin/$dst"
chmod +x "$out/bin/$dst" chmod +x "$out/bin/$dst"
} }
@ -183,7 +186,9 @@ stdenv.mkDerivation {
done done
'' + (if !useMacosReexportHack then '' '' + (if !useMacosReexportHack then ''
wrap ${targetPrefix}ld ${./ld-wrapper.sh} ''${ld:-$ldPath/${targetPrefix}ld} if [ -e ''${ld:-$ldPath/${targetPrefix}ld} ]; then
wrap ${targetPrefix}ld ${./ld-wrapper.sh} ''${ld:-$ldPath/${targetPrefix}ld}
fi
'' else '' '' else ''
ldInner="${targetPrefix}ld-reexport-delegate" ldInner="${targetPrefix}ld-reexport-delegate"
wrap "$ldInner" ${./macos-sierra-reexport-hack.bash} ''${ld:-$ldPath/${targetPrefix}ld} wrap "$ldInner" ${./macos-sierra-reexport-hack.bash} ''${ld:-$ldPath/${targetPrefix}ld}
@ -191,10 +196,9 @@ stdenv.mkDerivation {
unset ldInner unset ldInner
'') + '' '') + ''
for variant in ld.gold ld.bfd ld.lld; do for variant in $ldPath/${targetPrefix}ld.*; do
local underlying=$ldPath/${targetPrefix}$variant basename=$(basename "$variant")
[[ -e "$underlying" ]] || continue wrap $basename ${./ld-wrapper.sh} $variant
wrap ${targetPrefix}$variant ${./ld-wrapper.sh} $underlying
done done
''; '';

Some files were not shown because too many files have changed in this diff Show more