Merge remote-tracking branch 'origin/master' into staging-next

Conflicts:
pkgs/top-level/aliases.nix

+542 -495
+1 -1
lib/attrsets.nix
··· 276 277 278 /* Like `mapAttrsRecursive', but it takes an additional predicate 279 - function that tells it whether to recursive into an attribute 280 set. If it returns false, `mapAttrsRecursiveCond' does not 281 recurse, but does apply the map function. If it returns true, it 282 does recurse, and does not apply the map function.
··· 276 277 278 /* Like `mapAttrsRecursive', but it takes an additional predicate 279 + function that tells it whether to recurse into an attribute 280 set. If it returns false, `mapAttrsRecursiveCond' does not 281 recurse, but does apply the map function. If it returns true, it 282 does recurse, and does not apply the map function.
+7
nixos/doc/manual/from_md/release-notes/rl-2205.section.xml
··· 804 </listitem> 805 <listitem> 806 <para> 807 <literal>fetchFromSourcehut</literal> now allows fetching 808 repositories recursively using <literal>fetchgit</literal> or 809 <literal>fetchhg</literal> if the argument
··· 804 </listitem> 805 <listitem> 806 <para> 807 + <literal>nixos-generate-config</literal> now puts the dhcp 808 + configuration in <literal>hardware-configuration.nix</literal> 809 + instead of <literal>configuration.nix</literal>. 810 + </para> 811 + </listitem> 812 + <listitem> 813 + <para> 814 <literal>fetchFromSourcehut</literal> now allows fetching 815 repositories recursively using <literal>fetchgit</literal> or 816 <literal>fetchhg</literal> if the argument
+2
nixos/doc/manual/release-notes/rl-2205.section.md
··· 274 275 - A new option `boot.initrd.extraModprobeConfig` has been added which can be used to configure kernel modules that are loaded in the initrd. 276 277 - `fetchFromSourcehut` now allows fetching repositories recursively 278 using `fetchgit` or `fetchhg` if the argument `fetchSubmodules` 279 is set to `true`.
··· 274 275 - A new option `boot.initrd.extraModprobeConfig` has been added which can be used to configure kernel modules that are loaded in the initrd. 276 277 + - `nixos-generate-config` now puts the dhcp configuration in `hardware-configuration.nix` instead of `configuration.nix`. 278 + 279 - `fetchFromSourcehut` now allows fetching repositories recursively 280 using `fetchgit` or `fetchhg` if the argument `fetchSubmodules` 281 is set to `true`.
+8 -5
nixos/modules/installer/tools/nixos-generate-config.pl
··· 279 push @initrdKernelModules, "dm-snapshot"; 280 } 281 282 - my $virt = `systemd-detect-virt`; 283 chomp $virt; 284 285 ··· 398 # Maybe this is a bind-mount of a filesystem we saw earlier? 399 if (defined $fsByDev{$fields[2]}) { 400 # Make sure this isn't a btrfs subvolume. 401 - my $msg = `btrfs subvol show $rootDir$mountPoint`; 402 if ($? != 0 || $msg =~ /ERROR:/s) { 403 my $path = $fields[3]; $path = "" if $path eq "/"; 404 my $base = $fsByDev{$fields[2]}; ··· 436 437 # Is this a btrfs filesystem? 438 if ($fsType eq "btrfs") { 439 - my ($status, @info) = runCommand("btrfs subvol show $rootDir$mountPoint"); 440 if ($status != 0 || join("", @info) =~ /ERROR:/) { 441 die "Failed to retrieve subvolume info for $mountPoint\n"; 442 } ··· 558 $fsAndSwap .= "swapDevices =" . multiLineList(" ", @swapDevices) . ";\n"; 559 } 560 561 my $hwConfig = <<EOF; 562 # Do not modify this file! It was generated by ‘nixos-generate-config’ 563 # and may be overwritten by future invocations. Please make changes ··· 572 boot.kernelModules = [$kernelModules ]; 573 boot.extraModulePackages = [$modulePackages ]; 574 $fsAndSwap 575 ${\join "", (map { " $_\n" } (uniq @attrs))}} 576 EOF 577 ··· 580 # The global useDHCP flag is deprecated, therefore explicitly set to false here. 581 # Per-interface useDHCP will be mandatory in the future, so this generated config 582 # replicates the default behaviour. 583 - networking.useDHCP = false; 584 EOF 585 586 foreach my $path (glob "/sys/class/net/*") { 587 my $dev = basename($path); 588 if ($dev ne "lo") { 589 - $config .= " networking.interfaces.$dev.useDHCP = true;\n"; 590 } 591 } 592
··· 279 push @initrdKernelModules, "dm-snapshot"; 280 } 281 282 + my $virt = `@detectvirt@`; 283 chomp $virt; 284 285 ··· 398 # Maybe this is a bind-mount of a filesystem we saw earlier? 399 if (defined $fsByDev{$fields[2]}) { 400 # Make sure this isn't a btrfs subvolume. 401 + my $msg = `@btrfs@ subvol show $rootDir$mountPoint`; 402 if ($? != 0 || $msg =~ /ERROR:/s) { 403 my $path = $fields[3]; $path = "" if $path eq "/"; 404 my $base = $fsByDev{$fields[2]}; ··· 436 437 # Is this a btrfs filesystem? 438 if ($fsType eq "btrfs") { 439 + my ($status, @info) = runCommand("@btrfs@ subvol show $rootDir$mountPoint"); 440 if ($status != 0 || join("", @info) =~ /ERROR:/) { 441 die "Failed to retrieve subvolume info for $mountPoint\n"; 442 } ··· 558 $fsAndSwap .= "swapDevices =" . multiLineList(" ", @swapDevices) . ";\n"; 559 } 560 561 + my $networkingDhcpConfig = generateNetworkingDhcpConfig(); 562 + 563 my $hwConfig = <<EOF; 564 # Do not modify this file! It was generated by ‘nixos-generate-config’ 565 # and may be overwritten by future invocations. Please make changes ··· 574 boot.kernelModules = [$kernelModules ]; 575 boot.extraModulePackages = [$modulePackages ]; 576 $fsAndSwap 577 + $networkingDhcpConfig 578 ${\join "", (map { " $_\n" } (uniq @attrs))}} 579 EOF 580 ··· 583 # The global useDHCP flag is deprecated, therefore explicitly set to false here. 584 # Per-interface useDHCP will be mandatory in the future, so this generated config 585 # replicates the default behaviour. 586 + networking.useDHCP = lib.mkDefault false; 587 EOF 588 589 foreach my $path (glob "/sys/class/net/*") { 590 my $dev = basename($path); 591 if ($dev ne "lo") { 592 + $config .= " networking.interfaces.$dev.useDHCP = lib.mkDefault true;\n"; 593 } 594 } 595
+9 -3
nixos/modules/installer/tools/tools.nix
··· 33 nixos-generate-config = makeProg { 34 name = "nixos-generate-config"; 35 src = ./nixos-generate-config.pl; 36 - path = lib.optionals (lib.elem "btrfs" config.boot.supportedFilesystems) [ pkgs.btrfs-progs ]; 37 perl = "${pkgs.perl.withPackages (p: [ p.FileSlurp ])}/bin/perl"; 38 inherit (config.system.nixos-generate-config) configuration desktopConfiguration; 39 xserverEnabled = config.services.xserver.enable; 40 }; ··· 133 134 $bootLoaderConfig 135 # networking.hostName = "nixos"; # Define your hostname. 136 # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. 137 138 # Set your time zone. 139 # time.timeZone = "Europe/Amsterdam"; 140 141 - $networkingDhcpConfig 142 # Configure network proxy if necessary 143 # networking.proxy.default = "http://user:password\@proxy:port/"; 144 # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; ··· 148 # console = { 149 # font = "Lat2-Terminus16"; 150 # keyMap = "us"; 151 # }; 152 153 $xserverConfig ··· 155 $desktopConfiguration 156 # Configure keymap in X11 157 # services.xserver.layout = "us"; 158 - # services.xserver.xkbOptions = "eurosign:e"; 159 160 # Enable CUPS to print documents. 161 # services.printing.enable = true;
··· 33 nixos-generate-config = makeProg { 34 name = "nixos-generate-config"; 35 src = ./nixos-generate-config.pl; 36 perl = "${pkgs.perl.withPackages (p: [ p.FileSlurp ])}/bin/perl"; 37 + detectvirt = "${pkgs.systemd}/bin/systemd-detect-virt"; 38 + btrfs = "${pkgs.btrfs-progs}/bin/btrfs"; 39 inherit (config.system.nixos-generate-config) configuration desktopConfiguration; 40 xserverEnabled = config.services.xserver.enable; 41 }; ··· 134 135 $bootLoaderConfig 136 # networking.hostName = "nixos"; # Define your hostname. 137 + # Pick only one of the below networking options. 138 # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. 139 + # networking.networkmanager.enable = true; # Easiest to use and most distros use this by default. 140 141 # Set your time zone. 142 # time.timeZone = "Europe/Amsterdam"; 143 144 # Configure network proxy if necessary 145 # networking.proxy.default = "http://user:password\@proxy:port/"; 146 # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; ··· 150 # console = { 151 # font = "Lat2-Terminus16"; 152 # keyMap = "us"; 153 + # useXkbConfig = true; # use xkbOptions in tty. 154 # }; 155 156 $xserverConfig ··· 158 $desktopConfiguration 159 # Configure keymap in X11 160 # services.xserver.layout = "us"; 161 + # services.xserver.xkbOptions = { 162 + # "eurosign:e"; 163 + # "caps:escape" # map caps to escape. 164 + # }; 165 166 # Enable CUPS to print documents. 167 # services.printing.enable = true;
+38 -28
nixos/modules/services/security/haveged.nix
··· 3 with lib; 4 5 let 6 - 7 cfg = config.services.haveged; 8 9 in 10 - 11 12 { 13 ··· 17 18 services.haveged = { 19 20 - enable = mkOption { 21 - type = types.bool; 22 - default = false; 23 - description = '' 24 - Whether to enable to haveged entropy daemon, which refills 25 - /dev/random when low. 26 - ''; 27 - }; 28 29 refill_threshold = mkOption { 30 type = types.int; ··· 39 40 }; 41 42 - 43 - ###### implementation 44 - 45 config = mkIf cfg.enable { 46 47 - systemd.services.haveged = 48 - { description = "Entropy Harvesting Daemon"; 49 - unitConfig.Documentation = "man:haveged(8)"; 50 - wantedBy = [ "multi-user.target" ]; 51 - 52 - path = [ pkgs.haveged ]; 53 54 - serviceConfig = { 55 - ExecStart = "${pkgs.haveged}/bin/haveged -F -w ${toString cfg.refill_threshold} -v 1"; 56 - SuccessExitStatus = 143; 57 - PrivateTmp = true; 58 - PrivateDevices = true; 59 - PrivateNetwork = true; 60 - ProtectSystem = "full"; 61 - ProtectHome = true; 62 - }; 63 }; 64 65 }; 66 67 }
··· 3 with lib; 4 5 let 6 cfg = config.services.haveged; 7 8 in 9 10 { 11 ··· 15 16 services.haveged = { 17 18 + enable = mkEnableOption '' 19 + haveged entropy daemon, which refills /dev/random when low. 20 + NOTE: does nothing on kernels newer than 5.6. 21 + ''; 22 + # source for the note https://github.com/jirka-h/haveged/issues/57 23 24 refill_threshold = mkOption { 25 type = types.int; ··· 34 35 }; 36 37 config = mkIf cfg.enable { 38 39 + # https://github.com/jirka-h/haveged/blob/a4b69d65a8dfc5a9f52ff8505c7f58dcf8b9234f/contrib/Fedora/haveged.service 40 + systemd.services.haveged = { 41 + description = "Entropy Daemon based on the HAVEGE algorithm"; 42 + unitConfig = { 43 + Documentation = "man:haveged(8)"; 44 + DefaultDependencies = false; 45 + ConditionKernelVersion = "<5.6"; 46 + }; 47 + wantedBy = [ "sysinit.target" ]; 48 + after = [ "systemd-tmpfiles-setup-dev.service" ]; 49 + before = [ "sysinit.target" "shutdown.target" "systemd-journald.service" ]; 50 51 + serviceConfig = { 52 + ExecStart = "${pkgs.haveged}/bin/haveged -w ${toString cfg.refill_threshold} --Foreground -v 1"; 53 + Restart = "always"; 54 + SuccessExitStatus = "137 143"; 55 + SecureBits = "noroot-locked"; 56 + CapabilityBoundingSet = [ "CAP_SYS_ADMIN" "CAP_SYS_CHROOT" ]; 57 + # We can *not* set PrivateTmp=true as it can cause an ordering cycle. 58 + PrivateTmp = false; 59 + PrivateDevices = true; 60 + ProtectSystem = "full"; 61 + ProtectHome = true; 62 + ProtectHostname = true; 63 + ProtectKernelLogs = true; 64 + ProtectKernelModules = true; 65 + RestrictNamespaces = true; 66 + RestrictRealtime = true; 67 + LockPersonality = true; 68 + MemoryDenyWriteExecute = true; 69 + SystemCallArchitectures = "native"; 70 + SystemCallFilter = [ "@system-service" "newuname" "~@mount" ]; 71 + SystemCallErrorNumber = "EPERM"; 72 }; 73 74 + }; 75 }; 76 77 }
+7 -2
nixos/modules/services/x11/desktop-managers/pantheon.nix
··· 135 services.bamf.enable = true; 136 services.colord.enable = mkDefault true; 137 services.fwupd.enable = mkDefault true; 138 services.touchegg.enable = mkDefault true; 139 services.touchegg.package = pkgs.pantheon.touchegg; 140 services.tumbler.enable = mkDefault true; ··· 272 }) 273 274 (mkIf serviceCfg.apps.enable { 275 - environment.systemPackages = (with pkgs.pantheon; pkgs.gnome.removePackagesByName [ 276 elementary-calculator 277 elementary-calendar 278 elementary-camera ··· 286 elementary-terminal 287 elementary-videos 288 epiphany 289 - ] config.environment.pantheon.excludePackages); 290 291 # needed by screenshot 292 fonts.fonts = [
··· 135 services.bamf.enable = true; 136 services.colord.enable = mkDefault true; 137 services.fwupd.enable = mkDefault true; 138 + services.packagekit.enable = mkDefault true; 139 services.touchegg.enable = mkDefault true; 140 services.touchegg.package = pkgs.pantheon.touchegg; 141 services.tumbler.enable = mkDefault true; ··· 273 }) 274 275 (mkIf serviceCfg.apps.enable { 276 + environment.systemPackages = with pkgs.pantheon; pkgs.gnome.removePackagesByName ([ 277 elementary-calculator 278 elementary-calendar 279 elementary-camera ··· 287 elementary-terminal 288 elementary-videos 289 epiphany 290 + ] ++ lib.optionals config.services.flatpak.enable [ 291 + # Only install appcenter if flatpak is enabled before 292 + # https://github.com/NixOS/nixpkgs/issues/15932 is resolved. 293 + appcenter 294 + ]) config.environment.pantheon.excludePackages; 295 296 # needed by screenshot 297 fonts.fonts = [
+2 -2
nixos/modules/services/x11/desktop-managers/pantheon.xml
··· 105 </term> 106 <listitem> 107 <para> 108 - AppCenter has been available since 20.03, but it is of little use. This is because there is no functioning PackageKit backend for Nix 2.0. Starting from 21.11, the Flatpak backend should work so you can install some Flatpak applications using it. See this <link xlink:href="https://github.com/NixOS/nixpkgs/issues/70214">issue</link>. 109 </para> 110 <para> 111 - To use AppCenter on NixOS, add <literal>pantheon.appcenter</literal> to <xref linkend="opt-environment.systemPackages" />, <link linkend="module-services-flatpak">enable Flatpak support</link> and optionally add the <literal>appcenter</literal> Flatpak remote: 112 </para> 113 <screen> 114 <prompt>$ </prompt>flatpak remote-add --if-not-exists appcenter https://flatpak.elementary.io/repo.flatpakrepo
··· 105 </term> 106 <listitem> 107 <para> 108 + AppCenter has been available since 20.03. Starting from 21.11, the Flatpak backend should work so you can install some Flatpak applications using it. However, due to missing appstream metadata, the Packagekit backend does not function currently. See this <link xlink:href="https://github.com/NixOS/nixpkgs/issues/15932">issue</link>. 109 </para> 110 <para> 111 + If you are using Pantheon, AppCenter should be installed by default if you have <link linkend="module-services-flatpak">Flatpak support</link> enabled. If you also wish to add the <literal>appcenter</literal> Flatpak remote: 112 </para> 113 <screen> 114 <prompt>$ </prompt>flatpak remote-add --if-not-exists appcenter https://flatpak.elementary.io/repo.flatpakrepo
+2 -2
pkgs/applications/misc/wike/default.nix
··· 14 ]); 15 in stdenv.mkDerivation rec { 16 pname = "wike"; 17 - version = "1.7.0"; 18 19 src = fetchFromGitHub { 20 owner = "hugolabe"; 21 repo = "Wike"; 22 rev = version; 23 - sha256 = "sha256-Cv4gmAUqViHJEAgueLOUX+cI775QopfRA6vmHgQvCUY="; 24 }; 25 26 nativeBuildInputs = [
··· 14 ]); 15 in stdenv.mkDerivation rec { 16 pname = "wike"; 17 + version = "1.7.1"; 18 19 src = fetchFromGitHub { 20 owner = "hugolabe"; 21 repo = "Wike"; 22 rev = version; 23 + sha256 = "sha256-QLhfzGRrc2En0Hu+UdtPM572PdtXqOFL0W3LoAki4jI="; 24 }; 25 26 nativeBuildInputs = [
+2 -2
pkgs/applications/networking/browsers/lagrange/default.nix
··· 19 20 stdenv.mkDerivation rec { 21 pname = "lagrange"; 22 - version = "1.10.3"; 23 24 src = fetchFromGitHub { 25 owner = "skyjake"; 26 repo = "lagrange"; 27 rev = "v${version}"; 28 - sha256 = "sha256-4Xjm4P4uK0aZxUT0WzcSDdY6rEeh5YFwsMfVtFB14No="; 29 fetchSubmodules = true; 30 }; 31
··· 19 20 stdenv.mkDerivation rec { 21 pname = "lagrange"; 22 + version = "1.10.4"; 23 24 src = fetchFromGitHub { 25 owner = "skyjake"; 26 repo = "lagrange"; 27 rev = "v${version}"; 28 + sha256 = "sha256-tj/RDGPu1hB67eTdq7NrbRd+OwBhIAm1lBgoft5m4v4="; 29 fetchSubmodules = true; 30 }; 31
+2 -2
pkgs/applications/office/qownnotes/default.nix
··· 5 6 mkDerivation rec { 7 pname = "qownnotes"; 8 - version = "22.2.1"; 9 10 src = fetchurl { 11 url = "https://download.tuxfamily.org/${pname}/src/${pname}-${version}.tar.xz"; 12 # Fetch the checksum of current version with curl: 13 # curl https://download.tuxfamily.org/qownnotes/src/qownnotes-<version>.tar.xz.sha256 14 - sha256 = "26dfd41430e9efa5cc93c2d67156387a564efd0843c2020284658100b298d54c"; 15 }; 16 17 nativeBuildInputs = [ qmake qttools ];
··· 5 6 mkDerivation rec { 7 pname = "qownnotes"; 8 + version = "22.2.2"; 9 10 src = fetchurl { 11 url = "https://download.tuxfamily.org/${pname}/src/${pname}-${version}.tar.xz"; 12 # Fetch the checksum of current version with curl: 13 # curl https://download.tuxfamily.org/qownnotes/src/qownnotes-<version>.tar.xz.sha256 14 + sha256 = "sha256-b2yoy1WhnPTE2fNeHVvkwKLzjeaSBhHiQgSZ9VHwkGY="; 15 }; 16 17 nativeBuildInputs = [ qmake qttools ];
+2 -2
pkgs/applications/virtualization/cri-o/default.nix
··· 15 16 buildGoModule rec { 17 pname = "cri-o"; 18 - version = "1.22.1"; 19 20 src = fetchFromGitHub { 21 owner = "cri-o"; 22 repo = "cri-o"; 23 rev = "v${version}"; 24 - sha256 = "sha256-x1bnDksmEjKuzjwPBENP9xpQbzo8HAW+0i2l2Ra/48Y="; 25 }; 26 vendorSha256 = null; 27
··· 15 16 buildGoModule rec { 17 pname = "cri-o"; 18 + version = "1.23.0"; 19 20 src = fetchFromGitHub { 21 owner = "cri-o"; 22 repo = "cri-o"; 23 rev = "v${version}"; 24 + sha256 = "sha256-F6eWC1GhPJRyra7U80tBxfokY1PIJmsuF3H9536tPxA="; 25 }; 26 vendorSha256 = null; 27
+2 -2
pkgs/data/fonts/julia-mono/default.nix
··· 1 { lib, fetchzip }: 2 3 let 4 - version = "0.043"; 5 6 in 7 fetchzip { 8 name = "JuliaMono-ttf-${version}"; 9 url = "https://github.com/cormullion/juliamono/releases/download/v${version}/JuliaMono-ttf.tar.gz"; 10 - sha256 = "sha256-oxQRrFhTf37OrJSbDlmzh/7xOuKrtxO7v2+j7QcsAmE="; 11 12 postFetch = '' 13 mkdir -p $out/share/fonts/truetype
··· 1 { lib, fetchzip }: 2 3 let 4 + version = "0.044"; 5 6 in 7 fetchzip { 8 name = "JuliaMono-ttf-${version}"; 9 url = "https://github.com/cormullion/juliamono/releases/download/v${version}/JuliaMono-ttf.tar.gz"; 10 + sha256 = "sha256-KCU1eOSEWjYh6kPda/iCtZUIWIq5lK79uUCLl2w7SEg="; 11 12 postFetch = '' 13 mkdir -p $out/share/fonts/truetype
-240
pkgs/desktops/pantheon/apps/appcenter/add-packagekit-backend-option.patch
··· 1 - From b5d7cb20713eff3b3729e5c5fdd2f15680a29385 Mon Sep 17 00:00:00 2001 2 - From: Bobby Rong <rjl931189261@126.com> 3 - Date: Sun, 31 Oct 2021 23:12:46 +0800 4 - Subject: [PATCH] build: add packagekit_backend option 5 - 6 - --- 7 - .github/workflows/main.yml | 7 +++++++ 8 - meson_options.txt | 1 + 9 - src/Application.vala | 4 ++++ 10 - src/Core/BackendAggregator.vala | 2 ++ 11 - src/Core/Package.vala | 21 +++++++++++++-------- 12 - src/Core/UpdateManager.vala | 6 ++++++ 13 - src/Views/Homepage.vala | 4 ++++ 14 - src/meson.build | 10 ++++++++-- 15 - 8 files changed, 45 insertions(+), 10 deletions(-) 16 - 17 - diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml 18 - index daf13654..5dc5a2fb 100644 19 - --- a/.github/workflows/main.yml 20 - +++ b/.github/workflows/main.yml 21 - @@ -42,6 +42,13 @@ jobs: 22 - meson configure -Dcurated=false -Dpayments=false -Dsharing=false -Dname=Pop\!_Shop build 23 - ninja -C build install 24 - 25 - + - name: Build (NixOS) 26 - + env: 27 - + DESTDIR: out 28 - + run: | 29 - + meson configure -Dcurated=false -Dpayments=false -Dpackagekit_backend=false build 30 - + ninja -C build install 31 - + 32 - lint: 33 - 34 - runs-on: ubuntu-latest 35 - diff --git a/meson_options.txt b/meson_options.txt 36 - index 0ae93d07..37a6cd8a 100644 37 - --- a/meson_options.txt 38 - +++ b/meson_options.txt 39 - @@ -4,3 +4,4 @@ option('name', type : 'string', value : 'AppCenter', description : 'The name of 40 - option('payments', type : 'boolean', value : true, description : 'Enable payment features and display paid apps') 41 - option('sharing', type : 'boolean', value : true, description : 'Display sharing features, i.e. copyable URLs to appcenter.elementary.io') 42 - option('hide_upstream_distro_apps', type : 'boolean', value : true, description : 'Used for hiding Ubuntu repo apps on elementary OS') 43 - +option('packagekit_backend', type : 'boolean', value : true, description : 'Enable PackageKit backend') 44 - diff --git a/src/Application.vala b/src/Application.vala 45 - index 65fae5aa..7c075076 100644 46 - --- a/src/Application.vala 47 - +++ b/src/Application.vala 48 - @@ -167,9 +167,11 @@ public class AppCenter.App : Gtk.Application { 49 - 50 - var client = AppCenterCore.Client.get_default (); 51 - 52 - +#if PACKAGEKIT_BACKEND 53 - if (fake_update_packages != null) { 54 - AppCenterCore.PackageKitBackend.get_default ().fake_packages = fake_update_packages; 55 - } 56 - +#endif 57 - 58 - if (silent) { 59 - NetworkMonitor.get_default ().network_changed.connect ((available) => { 60 - @@ -183,6 +185,7 @@ public class AppCenter.App : Gtk.Application { 61 - return; 62 - } 63 - 64 - +#if PACKAGEKIT_BACKEND 65 - if (local_path != null) { 66 - var file = File.new_for_commandline_arg (local_path); 67 - 68 - @@ -192,6 +195,7 @@ public class AppCenter.App : Gtk.Application { 69 - warning ("Failed to load local AppStream XML file: %s", e.message); 70 - } 71 - } 72 - +#endif 73 - 74 - if (main_window == null) { 75 - main_window = new MainWindow (this); 76 - diff --git a/src/Core/BackendAggregator.vala b/src/Core/BackendAggregator.vala 77 - index 539dba98..feb1eaa9 100644 78 - --- a/src/Core/BackendAggregator.vala 79 - +++ b/src/Core/BackendAggregator.vala 80 - @@ -26,8 +26,10 @@ public class AppCenterCore.BackendAggregator : Backend, Object { 81 - 82 - construct { 83 - backends = new Gee.ArrayList<unowned Backend> (); 84 - +#if PACKAGEKIT_BACKEND 85 - backends.add (PackageKitBackend.get_default ()); 86 - backends.add (UbuntuDriversBackend.get_default ()); 87 - +#endif 88 - backends.add (FlatpakBackend.get_default ()); 89 - 90 - unowned Gtk.Application app = (Gtk.Application) GLib.Application.get_default (); 91 - diff --git a/src/Core/Package.vala b/src/Core/Package.vala 92 - index d6f12f15..8dbd7a22 100644 93 - --- a/src/Core/Package.vala 94 - +++ b/src/Core/Package.vala 95 - @@ -328,7 +328,14 @@ public class AppCenterCore.Package : Object { 96 - public string origin_description { 97 - owned get { 98 - unowned string origin = component.get_origin (); 99 - - if (backend is PackageKitBackend) { 100 - + if (backend is FlatpakBackend) { 101 - + var fp_package = this as FlatpakPackage; 102 - + if (fp_package != null && fp_package.installation == FlatpakBackend.system_installation) { 103 - + return _("%s (system-wide)").printf (origin); 104 - + } 105 - + return origin; 106 - +#if PACKAGEKIT_BACKEND 107 - + } else if (backend is PackageKitBackend) { 108 - if (origin == APPCENTER_PACKAGE_ORIGIN) { 109 - return _("AppCenter"); 110 - } else if (origin == ELEMENTARY_STABLE_PACKAGE_ORIGIN) { 111 - @@ -336,15 +343,9 @@ public class AppCenterCore.Package : Object { 112 - } else if (origin.has_prefix ("ubuntu-")) { 113 - return _("Ubuntu (non-curated)"); 114 - } 115 - - } else if (backend is FlatpakBackend) { 116 - - var fp_package = this as FlatpakPackage; 117 - - if (fp_package != null && fp_package.installation == FlatpakBackend.system_installation) { 118 - - return _("%s (system-wide)").printf (origin); 119 - - } 120 - - 121 - - return origin; 122 - } else if (backend is UbuntuDriversBackend) { 123 - return _("Ubuntu Drivers"); 124 - +#endif 125 - } 126 - 127 - return _("Unknown Origin (non-curated)"); 128 - @@ -434,11 +435,15 @@ public class AppCenterCore.Package : Object { 129 - _author_title = null; 130 - backend_details = null; 131 - 132 - +#if PACKAGEKIT_BACKEND 133 - // The version on a PackageKit package comes from the package not AppStream, so only reset the version 134 - // on other backends 135 - if (!(backend is PackageKitBackend)) { 136 - _latest_version = null; 137 - } 138 - +#else 139 - + _latest_version = null; 140 - +#endif 141 - 142 - this.component = component; 143 - } 144 - diff --git a/src/Core/UpdateManager.vala b/src/Core/UpdateManager.vala 145 - index 9deceaf5..c92c0d37 100644 146 - --- a/src/Core/UpdateManager.vala 147 - +++ b/src/Core/UpdateManager.vala 148 - @@ -52,6 +52,7 @@ public class AppCenterCore.UpdateManager : Object { 149 - installed_package.update_state (); 150 - } 151 - 152 - +#if PACKAGEKIT_BACKEND 153 - Pk.Results pk_updates; 154 - unowned PackageKitBackend client = PackageKitBackend.get_default (); 155 - try { 156 - @@ -60,10 +61,12 @@ public class AppCenterCore.UpdateManager : Object { 157 - warning ("Unable to get updates from PackageKit backend: %s", e.message); 158 - return 0; 159 - } 160 - +#endif 161 - 162 - uint os_count = 0; 163 - string os_desc = ""; 164 - 165 - +#if PACKAGEKIT_BACKEND 166 - var package_array = pk_updates.get_package_array (); 167 - debug ("PackageKit backend reports %d updates", package_array.length); 168 - 169 - @@ -87,6 +90,7 @@ public class AppCenterCore.UpdateManager : Object { 170 - ); 171 - } 172 - }); 173 - +#endif 174 - 175 - os_updates.component.set_pkgnames ({}); 176 - os_updates.change_information.clear_update_info (); 177 - @@ -159,6 +163,7 @@ public class AppCenterCore.UpdateManager : Object { 178 - count += 1; 179 - } 180 - 181 - +#if PACKAGEKIT_BACKEND 182 - pk_updates.get_details_array ().foreach ((pk_detail) => { 183 - var pk_package = new Pk.Package (); 184 - try { 185 - @@ -181,6 +186,7 @@ public class AppCenterCore.UpdateManager : Object { 186 - critical (e.message); 187 - } 188 - }); 189 - +#endif 190 - 191 - os_updates.update_state (); 192 - return count; 193 - diff --git a/src/Views/Homepage.vala b/src/Views/Homepage.vala 194 - index 3673903f..2e128e77 100644 195 - --- a/src/Views/Homepage.vala 196 - +++ b/src/Views/Homepage.vala 197 - @@ -107,9 +107,13 @@ public class AppCenter.Homepage : AbstractView { 198 - column_spacing = 24, 199 - orientation = Gtk.Orientation.VERTICAL 200 - }; 201 - +#if PACKAGEKIT_BACKEND 202 - grid.add (banner_revealer); 203 - grid.add (recently_updated_revealer); 204 - grid.add (categories_label); 205 - +#else 206 - + category_flow.margin_top = 12; 207 - +#endif 208 - grid.add (category_flow); 209 - 210 - scrolled_window = new Gtk.ScrolledWindow (null, null) { 211 - diff --git a/src/meson.build b/src/meson.build 212 - index 7b319fc6..d1d77931 100644 213 - --- a/src/meson.build 214 - +++ b/src/meson.build 215 - @@ -12,10 +12,8 @@ appcenter_files = files( 216 - 'Core/FlatpakBackend.vala', 217 - 'Core/Job.vala', 218 - 'Core/Package.vala', 219 - - 'Core/PackageKitBackend.vala', 220 - 'Core/ScreenshotCache.vala', 221 - 'Core/Task.vala', 222 - - 'Core/UbuntuDriversBackend.vala', 223 - 'Core/UpdateManager.vala', 224 - 'Dialogs/InstallFailDialog.vala', 225 - 'Dialogs/NonCuratedWarningDialog.vala', 226 - @@ -76,6 +74,14 @@ if get_option('hide_upstream_distro_apps') 227 - args += '--define=HIDE_UPSTREAM_DISTRO_APPS' 228 - endif 229 - 230 - +if get_option('packagekit_backend') 231 - + args += '--define=PACKAGEKIT_BACKEND' 232 - + appcenter_files += files( 233 - + 'Core/PackageKitBackend.vala', 234 - + 'Core/UbuntuDriversBackend.vala', 235 - + ) 236 - +endif 237 - + 238 - executable( 239 - meson.project_name(), 240 - appcenter_files,
···
-9
pkgs/desktops/pantheon/apps/appcenter/default.nix
··· 38 sha256 = "sha256-xktIHQHmz5gh72NEz9UQ9fMvBlj1BihWxHgxsHmTIB0="; 39 }; 40 41 - patches = [ 42 - # Introduces a packagekit_backend meson flag. 43 - # Makes appcenter actually work by using only the flatpak backend. 44 - # https://github.com/elementary/appcenter/pull/1739 45 - ./add-packagekit-backend-option.patch 46 - ]; 47 - 48 nativeBuildInputs = [ 49 appstream-glib 50 dbus # for pkg-config ··· 77 mesonFlags = [ 78 "-Dpayments=false" 79 "-Dcurated=false" 80 - # This option is introduced in add-packagekit-backend-option.patch 81 - "-Dpackagekit_backend=false" 82 ]; 83 84 postPatch = ''
··· 38 sha256 = "sha256-xktIHQHmz5gh72NEz9UQ9fMvBlj1BihWxHgxsHmTIB0="; 39 }; 40 41 nativeBuildInputs = [ 42 appstream-glib 43 dbus # for pkg-config ··· 70 mesonFlags = [ 71 "-Dpayments=false" 72 "-Dcurated=false" 73 ]; 74 75 postPatch = ''
+1 -2
pkgs/desktops/pantheon/desktop/elementary-default-settings/default.nix
··· 47 ''; 48 49 preInstall = '' 50 - # Install our override for plank dockitems as Appcenter is not ready to be preinstalled. 51 - # See: https://github.com/NixOS/nixpkgs/issues/70214. 52 schema_dir=$out/share/glib-2.0/schemas 53 install -D ${./overrides/plank-dockitems.gschema.override} $schema_dir/plank-dockitems.gschema.override 54
··· 47 ''; 48 49 preInstall = '' 50 + # Install our override for plank dockitems as the desktop file path is different. 51 schema_dir=$out/share/glib-2.0/schemas 52 install -D ${./overrides/plank-dockitems.gschema.override} $schema_dir/plank-dockitems.gschema.override 53
+2
pkgs/desktops/pantheon/desktop/elementary-default-settings/launchers/io.elementary.appcenter.dockitem
···
··· 1 + [PlankDockItemPreferences] 2 + Launcher=file:///run/current-system/sw/share/applications/io.elementary.appcenter.desktop
+1 -1
pkgs/desktops/pantheon/desktop/elementary-default-settings/overrides/plank-dockitems.gschema.override
··· 1 [net.launchpad.plank.dock.settings] 2 - dock-items=['gala-multitaskingview.dockitem','org.gnome.Epiphany.dockitem','io.elementary.mail.dockitem','io.elementary.tasks.dockitem','io.elementary.calendar.dockitem','io.elementary.music.dockitem','io.elementary.videos.dockitem','io.elementary.photos.dockitem','io.elementary.switchboard.dockitem']
··· 1 [net.launchpad.plank.dock.settings] 2 + dock-items=['gala-multitaskingview.dockitem','org.gnome.Epiphany.dockitem','io.elementary.mail.dockitem','io.elementary.tasks.dockitem','io.elementary.calendar.dockitem','io.elementary.music.dockitem','io.elementary.videos.dockitem','io.elementary.photos.dockitem','io.elementary.switchboard.dockitem','io.elementary.appcenter.dockitem']
+2 -2
pkgs/development/interpreters/clojure/babashka.nix
··· 2 3 buildGraalvmNativeImage rec { 4 pname = "babashka"; 5 - version = "0.7.3"; 6 7 src = fetchurl { 8 url = "https://github.com/babashka/${pname}/releases/download/v${version}/${pname}-${version}-standalone.jar"; 9 - sha256 = "sha256-zbxFMc02hbsU2ERlUzqMBHwHYfORB7TkMINrKC52PPU="; 10 }; 11 12 executable = "bb";
··· 2 3 buildGraalvmNativeImage rec { 4 pname = "babashka"; 5 + version = "0.7.4"; 6 7 src = fetchurl { 8 url = "https://github.com/babashka/${pname}/releases/download/v${version}/${pname}-${version}-standalone.jar"; 9 + sha256 = "sha256-GphF32CFxZYaoTG1k9pP+cRNs/PIKtwevTcIyjG7CpQ="; 10 }; 11 12 executable = "bb";
+2 -2
pkgs/development/interpreters/clojure/default.nix
··· 2 3 stdenv.mkDerivation rec { 4 pname = "clojure"; 5 - version = "1.10.3.1058"; 6 7 src = fetchurl { 8 # https://clojure.org/releases/tools 9 url = "https://download.clojure.org/install/clojure-tools-${version}.tar.gz"; 10 - sha256 = "guIQjiWyulITZZSjt/kCtU5qo4FG/2IK2rwBI6Ttfe0="; 11 }; 12 13 nativeBuildInputs = [
··· 2 3 stdenv.mkDerivation rec { 4 pname = "clojure"; 5 + version = "1.10.3.1075"; 6 7 src = fetchurl { 8 # https://clojure.org/releases/tools 9 url = "https://download.clojure.org/install/clojure-tools-${version}.tar.gz"; 10 + sha256 = "5uJtr6uz6mrkoFfzUmUb6vy5H4s1Lag3CNCsGwsQZ9Q="; 11 }; 12 13 nativeBuildInputs = [
+2 -2
pkgs/development/python-modules/aioaseko/default.nix
··· 7 8 buildPythonPackage rec { 9 pname = "aioaseko"; 10 - version = "0.0.1"; 11 format = "pyproject"; 12 13 disabled = pythonOlder "3.8"; ··· 16 owner = "milanmeu"; 17 repo = pname; 18 rev = "v${version}"; 19 - hash = "sha256-dfU2J4aDKNR+GoEmdq/NhX4Mrmm9tmCkse1tb+V5EFQ="; 20 }; 21 22 propagatedBuildInputs = [
··· 7 8 buildPythonPackage rec { 9 pname = "aioaseko"; 10 + version = "0.0.2"; 11 format = "pyproject"; 12 13 disabled = pythonOlder "3.8"; ··· 16 owner = "milanmeu"; 17 repo = pname; 18 rev = "v${version}"; 19 + hash = "sha256-nJRVNBYfBcLYnBsTpQZYMHYWh0+hQObVKJ7sOXFwDjc="; 20 }; 21 22 propagatedBuildInputs = [
+2 -2
pkgs/development/python-modules/aioesphomeapi/default.nix
··· 12 13 buildPythonPackage rec { 14 pname = "aioesphomeapi"; 15 - version = "10.8.1"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; ··· 21 owner = "esphome"; 22 repo = pname; 23 rev = "v${version}"; 24 - sha256 = "1hi312gvkrmcxhrc8s3zxwbh87hakd42k5hk7c3xqilc4in3d5dv"; 25 }; 26 27 propagatedBuildInputs = [
··· 12 13 buildPythonPackage rec { 14 pname = "aioesphomeapi"; 15 + version = "10.8.2"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; ··· 21 owner = "esphome"; 22 repo = pname; 23 rev = "v${version}"; 24 + sha256 = "sha256-zvilMBx9H2VDmu13IiAiCqXEGkbpAJpGnt4Ea7FlGVI="; 25 }; 26 27 propagatedBuildInputs = [
+51
pkgs/development/python-modules/aiosteamist/default.nix
···
··· 1 + { lib 2 + , aiohttp 3 + , buildPythonPackage 4 + , fetchFromGitHub 5 + , poetry-core 6 + , pythonOlder 7 + , xmltodict 8 + }: 9 + 10 + buildPythonPackage rec { 11 + pname = "aiosteamist"; 12 + version = "0.3.1"; 13 + format = "pyproject"; 14 + 15 + disabled = pythonOlder "3.7"; 16 + 17 + src = fetchFromGitHub { 18 + owner = "bdraco"; 19 + repo = pname; 20 + rev = version; 21 + hash = "sha256-VoIJh3EDBPKmvEmM3gP2pyt/0oz4i6Y0zIkkprTcFLg="; 22 + }; 23 + 24 + nativeBuildInputs = [ 25 + poetry-core 26 + ]; 27 + 28 + propagatedBuildInputs = [ 29 + aiohttp 30 + xmltodict 31 + ]; 32 + 33 + postPatch = '' 34 + substituteInPlace pyproject.toml \ 35 + --replace "--cov=aiosteamist" "" 36 + ''; 37 + 38 + pythonImportsCheck = [ 39 + "aiosteamist" 40 + ]; 41 + 42 + # Modules doesn't have test suite 43 + doCheck = false; 44 + 45 + meta = with lib; { 46 + description = "Module to control Steamist steam systems"; 47 + homepage = "https://github.com/bdraco/aiosteamist"; 48 + license = with licenses; [ asl20 ]; 49 + maintainers = with maintainers; [ fab ]; 50 + }; 51 + }
+2 -2
pkgs/development/python-modules/cloudsplaining/default.nix
··· 17 18 buildPythonPackage rec { 19 pname = "cloudsplaining"; 20 - version = "0.4.10"; 21 format = "setuptools"; 22 23 disabled = pythonOlder "3.6"; ··· 26 owner = "salesforce"; 27 repo = pname; 28 rev = version; 29 - hash = "sha256-zTsqrHu8eQsQ4ZFocvHdVsgCjWE6JVrlyaztFNir2fk="; 30 }; 31 32 propagatedBuildInputs = [
··· 17 18 buildPythonPackage rec { 19 pname = "cloudsplaining"; 20 + version = "0.5.0"; 21 format = "setuptools"; 22 23 disabled = pythonOlder "3.6"; ··· 26 owner = "salesforce"; 27 repo = pname; 28 rev = version; 29 + hash = "sha256-HdZHRK/Q544z9ySbjNIjqiXzel0UTsnb9tuXawbkwZg="; 30 }; 31 32 propagatedBuildInputs = [
+2 -2
pkgs/development/python-modules/connexion/default.nix
··· 22 23 buildPythonPackage rec { 24 pname = "connexion"; 25 - version = "2.10.0"; 26 format = "setuptools"; 27 28 disabled = pythonOlder "3.6"; ··· 31 owner = "zalando"; 32 repo = pname; 33 rev = version; 34 - sha256 = "sha256-a1wj72XpjXvhWCxRLrGeDatS8a4ij9YAm9FGhTBq/i8="; 35 }; 36 37 propagatedBuildInputs = [
··· 22 23 buildPythonPackage rec { 24 pname = "connexion"; 25 + version = "2.11.1"; 26 format = "setuptools"; 27 28 disabled = pythonOlder "3.6"; ··· 31 owner = "zalando"; 32 repo = pname; 33 rev = version; 34 + sha256 = "sha256-m/r09VNp/AMssOJH9RKMhPcObGHl9uIAoS1PwrjpKaE="; 35 }; 36 37 propagatedBuildInputs = [
+18 -7
pkgs/development/python-modules/decopatch/default.nix
··· 3 , fetchPypi 4 , makefun 5 , setuptools-scm 6 }: 7 8 buildPythonPackage rec { 9 pname = "decopatch"; 10 - version = "1.4.8"; 11 12 src = fetchPypi { 13 inherit pname version; 14 - sha256 = "0i6i811s2j1z0cl6y177dwsbfxib8dvb5c2jpgklvc2xy4ahhsy6"; 15 }; 16 17 - nativeBuildInputs = [ setuptools-scm ]; 18 19 - propagatedBuildInputs = [ makefun ]; 20 21 postPatch = '' 22 - substituteInPlace setup.py --replace "'pytest-runner', " "" 23 ''; 24 25 # Tests would introduce multiple cirucular dependencies 26 # Affected: makefun, pytest-cases 27 doCheck = false; 28 - 29 - pythonImportsCheck = [ "decopatch" ]; 30 31 meta = with lib; { 32 description = "Python helper for decorators";
··· 3 , fetchPypi 4 , makefun 5 , setuptools-scm 6 + , pythonOlder 7 }: 8 9 buildPythonPackage rec { 10 pname = "decopatch"; 11 + version = "1.4.9"; 12 + format = "setuptools"; 13 + 14 + disabled = pythonOlder "3.7"; 15 16 src = fetchPypi { 17 inherit pname version; 18 + hash = "sha256-tYgsjPDVsB0hi04E9nYtB7ModCDqUJcG9Zlxw9b+xW8="; 19 }; 20 21 + nativeBuildInputs = [ 22 + setuptools-scm 23 + ]; 24 25 + propagatedBuildInputs = [ 26 + makefun 27 + ]; 28 29 postPatch = '' 30 + substituteInPlace setup.cfg \ 31 + --replace "pytest-runner" "" 32 ''; 33 34 + pythonImportsCheck = [ 35 + "decopatch" 36 + ]; 37 + 38 # Tests would introduce multiple cirucular dependencies 39 # Affected: makefun, pytest-cases 40 doCheck = false; 41 42 meta = with lib; { 43 description = "Python helper for decorators";
+49
pkgs/development/python-modules/discovery30303/default.nix
···
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , pythonOlder 5 + , poetry-core 6 + , pytest-asyncio 7 + , pytestCheckHook 8 + }: 9 + 10 + buildPythonPackage rec { 11 + pname = "discovery30303"; 12 + version = "0.2.1"; 13 + format = "pyproject"; 14 + 15 + disabled = pythonOlder "3.7"; 16 + 17 + src = fetchFromGitHub { 18 + owner = "bdraco"; 19 + repo = pname; 20 + # Commit points to 0.2.1, https://github.com/bdraco/discovery30303/issues/1 21 + rev = "0d0b0fdca1a98662dd2e6174d25853703bd6bf07"; 22 + hash = "sha256-WSVMhiJxASxAkxs6RGuAVvEFS8TPxDKE9M99Rp8HKGM="; 23 + }; 24 + 25 + nativeBuildInputs = [ 26 + poetry-core 27 + ]; 28 + 29 + checkInputs = [ 30 + pytest-asyncio 31 + pytestCheckHook 32 + ]; 33 + 34 + postPatch = '' 35 + substituteInPlace pyproject.toml \ 36 + --replace " --cov=discovery30303" "" 37 + ''; 38 + 39 + pythonImportsCheck = [ 40 + "discovery30303" 41 + ]; 42 + 43 + meta = with lib; { 44 + description = "Module to discover devices that respond on port 30303"; 45 + homepage = "https://github.com/bdraco/discovery30303"; 46 + license = with licenses; [ asl20 ]; 47 + maintainers = with maintainers; [ fab ]; 48 + }; 49 + }
+44
pkgs/development/python-modules/flake8-bugbear/default.nix
···
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , attrs 5 + , flake8 6 + , pytestCheckHook 7 + , hypothesis 8 + , hypothesmith 9 + }: 10 + 11 + buildPythonPackage rec { 12 + pname = "flake8-bugbear"; 13 + version = "22.1.11"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "PyCQA"; 17 + repo = pname; 18 + rev = version; 19 + sha256 = "sha256-sTg69Hgvi77wtLWEH4JtcIAMFk7exr5CBXmyS0nE5Vc="; 20 + }; 21 + 22 + propagatedBuildInputs = [ 23 + attrs 24 + flake8 25 + ]; 26 + 27 + checkInputs = [ 28 + flake8 29 + pytestCheckHook 30 + hypothesis 31 + hypothesmith 32 + ]; 33 + 34 + meta = with lib; { 35 + homepage = "https://github.com/PyCQA/flake8-bugbear"; 36 + changelog = "https://github.com/PyCQA/flake8-bugbear/blob/${version}/README.rst#change-log"; 37 + description = '' 38 + A plugin for flake8 finding likely bugs and design problems in your 39 + program. 40 + ''; 41 + license = licenses.mit; 42 + maintainers = with maintainers; [ newam ]; 43 + }; 44 + }
+2 -2
pkgs/development/python-modules/gipc/default.nix
··· 6 7 buildPythonPackage rec { 8 pname = "gipc"; 9 - version = "1.3.0"; 10 11 src = fetchPypi { 12 inherit pname version; 13 - sha256 = "a25ccfd2f8c94b24d2113fa50a0de5c7a44499ca9f2ab7c91c3bec0ed96ddeb1"; 14 }; 15 16 propagatedBuildInputs = [ gevent ];
··· 6 7 buildPythonPackage rec { 8 pname = "gipc"; 9 + version = "1.4.0"; 10 11 src = fetchPypi { 12 inherit pname version; 13 + sha256 = "sha256-P8d2GIxFAAHeXjXgIxKGwahiH1TW/9fE+V0f9Ra54wo="; 14 }; 15 16 propagatedBuildInputs = [ gevent ];
+2 -2
pkgs/development/python-modules/glean-parser/default.nix
··· 16 17 buildPythonPackage rec { 18 pname = "glean_parser"; 19 - version = "4.4.0"; 20 21 disabled = pythonOlder "3.6"; 22 23 src = fetchPypi { 24 inherit pname version; 25 - sha256 = "3ae1435b183936a49368806421df27ab944f1802e86a02b38b8e08e53ff0aac5"; 26 }; 27 28 postPatch = ''
··· 16 17 buildPythonPackage rec { 18 pname = "glean_parser"; 19 + version = "5.0.1"; 20 21 disabled = pythonOlder "3.6"; 22 23 src = fetchPypi { 24 inherit pname version; 25 + sha256 = "sha256-MJ827VXy8e2CRyq4sY4d0B7etxBgRk4/hZybYOOLh9Q="; 26 }; 27 28 postPatch = ''
+3 -3
pkgs/development/python-modules/glean-sdk/default.nix
··· 12 13 buildPythonPackage rec { 14 pname = "glean-sdk"; 15 - version = "43.0.2"; 16 17 src = fetchPypi { 18 inherit pname version; 19 - sha256 = "sha256-9LLE7cUJhJ+0/rFtVkSdiXUohrXW0JFy3XcYMAAivfw="; 20 }; 21 22 cargoDeps = rustPlatform.fetchCargoTarball { 23 inherit src; 24 name = "${pname}-${version}"; 25 - sha256 = "sha256:1qi7zn2278jpry466w3xj1wpyy5f82bffi55i6nva591i3r1z4am"; 26 }; 27 28 nativeBuildInputs = [
··· 12 13 buildPythonPackage rec { 14 pname = "glean-sdk"; 15 + version = "44.0.0"; 16 17 src = fetchPypi { 18 inherit pname version; 19 + sha256 = "sha256-gzLsBwq3wrFde5cEb5+oFLW4KrwoiZpr22JbJhNr1yk="; 20 }; 21 22 cargoDeps = rustPlatform.fetchCargoTarball { 23 inherit src; 24 name = "${pname}-${version}"; 25 + sha256 = "sha256-lWFv8eiA3QHp5bhcg4qon/dvKUbFbtH1Q2oXGkk0Me0="; 26 }; 27 28 nativeBuildInputs = [
+8 -8
pkgs/development/python-modules/google-nest-sdm/default.nix
··· 16 17 buildPythonPackage rec { 18 pname = "google-nest-sdm"; 19 - version = "1.6.0"; 20 format = "setuptools"; 21 22 disabled = pythonOlder "3.8"; ··· 25 owner = "allenporter"; 26 repo = "python-google-nest-sdm"; 27 rev = version; 28 - sha256 = "sha256-qgowVCsSNa+Gt+fWnR1eMfkbtpZD7DS4ALZYz6KZZTM="; 29 }; 30 31 propagatedBuildInputs = [ ··· 44 pytestCheckHook 45 ]; 46 47 - postPatch = '' 48 - substituteInPlace tests/event_media_test.py \ 49 - --replace "/bin/echo" "${coreutils}/bin/echo" 50 - ''; 51 - 52 pythonImportsCheck = [ 53 "google_nest_sdm" 54 ]; 55 56 meta = with lib; { 57 - description = "Python module for Google Nest Device Access using the Smart Device Management API"; 58 homepage = "https://github.com/allenporter/python-google-nest-sdm"; 59 license = licenses.asl20; 60 maintainers = with maintainers; [ fab ];
··· 16 17 buildPythonPackage rec { 18 pname = "google-nest-sdm"; 19 + version = "1.7.0"; 20 format = "setuptools"; 21 22 disabled = pythonOlder "3.8"; ··· 25 owner = "allenporter"; 26 repo = "python-google-nest-sdm"; 27 rev = version; 28 + sha256 = "sha256-SDxYPncC/VVTbI4Ka/mgcVfU1KUNRXVvQl78LCoD/RQ="; 29 }; 30 31 propagatedBuildInputs = [ ··· 44 pytestCheckHook 45 ]; 46 47 pythonImportsCheck = [ 48 "google_nest_sdm" 49 ]; 50 51 + disabledTests = [ 52 + "test_clip_preview_transcode" 53 + "test_event_manager_event_expiration_with_transcode" 54 + ]; 55 + 56 meta = with lib; { 57 + description = "Module for Google Nest Device Access using the Smart Device Management API"; 58 homepage = "https://github.com/allenporter/python-google-nest-sdm"; 59 license = licenses.asl20; 60 maintainers = with maintainers; [ fab ];
+11 -5
pkgs/development/python-modules/httpx-ntlm/default.nix
··· 3 , cryptography 4 , fetchPypi 5 , httpx 6 - , ntlm-auth 7 }: 8 9 buildPythonPackage rec { 10 pname = "httpx-ntlm"; 11 - version = "0.0.10"; 12 13 src = fetchPypi { 14 pname = "httpx_ntlm"; 15 inherit version; 16 - sha256 = "1rar6smz56y8k5qbgrpabpr639nwvf6whdi093hyakf0m3h9cpfz"; 17 }; 18 19 propagatedBuildInputs = [ 20 cryptography 21 httpx 22 - ntlm-auth 23 ]; 24 25 # https://github.com/ulodciv/httpx-ntlm/issues/5 26 doCheck = false; 27 28 - pythonImportsCheck = [ "httpx_ntlm" ]; 29 30 meta = with lib; { 31 description = "NTLM authentication support for HTTPX";
··· 3 , cryptography 4 , fetchPypi 5 , httpx 6 + , pyspnego 7 + , pythonOlder 8 }: 9 10 buildPythonPackage rec { 11 pname = "httpx-ntlm"; 12 + version = "1.0.0"; 13 + format = "setuptools"; 14 + 15 + disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 pname = "httpx_ntlm"; 19 inherit version; 20 + sha256 = "sha256-pv/OxgcO0JWk2nCZp+bKlOdX7NqV6V5xZRDy5dd13qQ="; 21 }; 22 23 propagatedBuildInputs = [ 24 cryptography 25 httpx 26 + pyspnego 27 ]; 28 29 # https://github.com/ulodciv/httpx-ntlm/issues/5 30 doCheck = false; 31 32 + pythonImportsCheck = [ 33 + "httpx_ntlm" 34 + ]; 35 36 meta = with lib; { 37 description = "NTLM authentication support for HTTPX";
+2 -2
pkgs/development/python-modules/identify/default.nix
··· 9 10 buildPythonPackage rec { 11 pname = "identify"; 12 - version = "2.4.8"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; ··· 18 owner = "pre-commit"; 19 repo = pname; 20 rev = "v${version}"; 21 - sha256 = "sha256-MrlFTUNisT5VG8IUIk/qejkM7tV6qrU4ASBzAUCLWpQ="; 22 }; 23 24 checkInputs = [
··· 9 10 buildPythonPackage rec { 11 pname = "identify"; 12 + version = "2.4.9"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; ··· 18 owner = "pre-commit"; 19 repo = pname; 20 rev = "v${version}"; 21 + sha256 = "sha256-4pFkysb0gxgb1oYirTnvQgjEStJkzUn0Ktw33ZP7zA4="; 22 }; 23 24 checkInputs = [
+2 -2
pkgs/development/python-modules/intellifire4py/default.nix
··· 10 11 buildPythonPackage rec { 12 pname = "intellifire4py"; 13 - version = "0.7.3"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; ··· 19 owner = "jeeftor"; 20 repo = pname; 21 rev = version; 22 - hash = "sha256-vOARk7TZrpsJLt8Ofur1NxknejmmxmH4Z+30mev4++o="; 23 }; 24 25 propagatedBuildInputs = [
··· 10 11 buildPythonPackage rec { 12 pname = "intellifire4py"; 13 + version = "0.9.7"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; ··· 19 owner = "jeeftor"; 20 repo = pname; 21 rev = version; 22 + hash = "sha256-cNWsKwXVlnZgPjkll1IaEhDHfHNvWCBY6U3B34IdHd0="; 23 }; 24 25 propagatedBuildInputs = [
+2 -2
pkgs/development/python-modules/libusb1/default.nix
··· 2 3 buildPythonPackage rec { 4 pname = "libusb1"; 5 - version = "2.0.1"; 6 7 src = fetchPypi { 8 inherit pname version; 9 - sha256 = "d3ba82ecf7ab6a48d21dac6697e26504670cc3522b8e5941bd28fb56cf3f6c46"; 10 }; 11 12 postPatch = ''
··· 2 3 buildPythonPackage rec { 4 pname = "libusb1"; 5 + version = "3.0.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 + sha256 = "5792a9defee40f15d330a40d9b1800545c32e47ba7fc66b6f28f133c9fcc8538"; 10 }; 11 12 postPatch = ''
+16 -6
pkgs/development/python-modules/nltk/default.nix
··· 1 - { fetchPypi, buildPythonPackage, lib, isPy3k 2 , click 3 , joblib 4 , regex ··· 6 }: 7 8 buildPythonPackage rec { 9 - version = "3.6.7"; 10 pname = "nltk"; 11 12 src = fetchPypi { 13 inherit pname version; 14 extension = "zip"; 15 - sha256 = "51bf1aef5304740a708be7c8e683f7798f03dc5c7a7e7feb758be9e95f4585e3"; 16 }; 17 18 propagatedBuildInputs = [ ··· 30 # best. 31 doCheck = false; 32 33 - meta = { 34 description = "Natural Language Processing ToolKit"; 35 homepage = "http://nltk.org/"; 36 - license = lib.licenses.asl20; 37 - maintainers = with lib.maintainers; [ lheckemann ]; 38 }; 39 }
··· 1 + { lib 2 + , fetchPypi 3 + , buildPythonPackage 4 + , pythonOlder 5 , click 6 , joblib 7 , regex ··· 9 }: 10 11 buildPythonPackage rec { 12 pname = "nltk"; 13 + version = "3.7"; 14 + format = "setuptools"; 15 + 16 + disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 extension = "zip"; 21 + hash = "sha256-1lB9ZGDOx21wr+pCQqImp1QvhcZpF3ucf1YrfPGwVQI="; 22 }; 23 24 propagatedBuildInputs = [ ··· 36 # best. 37 doCheck = false; 38 39 + pythonImportsCheck = [ 40 + "nltk" 41 + ]; 42 + 43 + meta = with lib; { 44 description = "Natural Language Processing ToolKit"; 45 homepage = "http://nltk.org/"; 46 + license = licenses.asl20; 47 + maintainers = with maintainers; [ lheckemann ]; 48 }; 49 }
+2 -2
pkgs/development/python-modules/ovoenergy/default.nix
··· 8 9 buildPythonPackage rec { 10 pname = "ovoenergy"; 11 - version = "1.1.12"; 12 disabled = pythonOlder "3.7"; 13 14 src = fetchFromGitHub { 15 owner = "timmo001"; 16 repo = pname; 17 rev = "v${version}"; 18 - sha256 = "1430k699gblxwspsbgxnha8afk6npqharhz2jyjw5gir9pi6g9cz"; 19 }; 20 21 propagatedBuildInputs = [
··· 8 9 buildPythonPackage rec { 10 pname = "ovoenergy"; 11 + version = "1.2.0"; 12 disabled = pythonOlder "3.7"; 13 14 src = fetchFromGitHub { 15 owner = "timmo001"; 16 repo = pname; 17 rev = "v${version}"; 18 + sha256 = "sha256-OSK74uvpHuEtWgbLVFrz1NO7lvtHbt690smGQ+GlsOI="; 19 }; 20 21 propagatedBuildInputs = [
+2 -2
pkgs/development/python-modules/pygraphviz/default.nix
··· 11 12 buildPythonPackage rec { 13 pname = "pygraphviz"; 14 - version = "1.8"; 15 16 disabled = !isPy3k; 17 18 src = fetchPypi { 19 inherit pname version; 20 - hash = "sha256-6y4losZHBE57ZrWhWb5k2q7yS1Sfz1NcJBNp1ubgnEU="; 21 extension = "zip"; 22 }; 23
··· 11 12 buildPythonPackage rec { 13 pname = "pygraphviz"; 14 + version = "1.9"; 15 16 disabled = !isPy3k; 17 18 src = fetchPypi { 19 inherit pname version; 20 + hash = "sha256-+hj3xs6ig0Gk5GbtDPBWgrCmgoiv6N18lCZ4L3wa4Bw="; 21 extension = "zip"; 22 }; 23
+2 -2
pkgs/development/python-modules/pynamodb/default.nix
··· 11 12 buildPythonPackage rec { 13 pname = "pynamodb"; 14 - version = "5.2.0"; 15 16 src = fetchPypi { 17 inherit pname version; 18 - sha256 = "6c9bec5946949d07c76230187cdb9126e8247c94499bbc8e79ded11d17060a60"; 19 }; 20 21 propagatedBuildInputs = [ python-dateutil botocore ];
··· 11 12 buildPythonPackage rec { 13 pname = "pynamodb"; 14 + version = "5.2.1"; 15 16 src = fetchPypi { 17 inherit pname version; 18 + sha256 = "sha256-x6nFV7UjZLwJJX7dADeO68dSWLvaoP4FD8ziNWFJ+Qo="; 19 }; 20 21 propagatedBuildInputs = [ python-dateutil botocore ];
+2 -2
pkgs/development/python-modules/pywemo/default.nix
··· 13 14 buildPythonPackage rec { 15 pname = "pywemo"; 16 - version = "0.7.0"; 17 format = "pyproject"; 18 19 disabled = pythonOlder "3.7"; ··· 22 owner = pname; 23 repo = pname; 24 rev = version; 25 - sha256 = "sha256-NwhKrk5cQT7kk4VCr0BMQz0yTP/vuBA6MjTRuk2LM5Y="; 26 }; 27 28 nativeBuildInputs = [
··· 13 14 buildPythonPackage rec { 15 pname = "pywemo"; 16 + version = "0.8.0"; 17 format = "pyproject"; 18 19 disabled = pythonOlder "3.7"; ··· 22 owner = pname; 23 repo = pname; 24 rev = version; 25 + hash = "sha256-bGoqhrjoRKUGPBNfmr2XP+1HL5mdRi6XoCi0BdvY9x8="; 26 }; 27 28 nativeBuildInputs = [
+2 -2
pkgs/development/python-modules/sendgrid/default.nix
··· 12 13 buildPythonPackage rec { 14 pname = "sendgrid"; 15 - version = "6.9.5"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.6"; ··· 21 owner = pname; 22 repo = "sendgrid-python"; 23 rev = version; 24 - sha256 = "1r8xh0c6wivrajj6gl1hv25vsb9i79n19nd4x53207i5vz9d55g5"; 25 }; 26 27 propagatedBuildInputs = [
··· 12 13 buildPythonPackage rec { 14 pname = "sendgrid"; 15 + version = "6.9.6"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.6"; ··· 21 owner = pname; 22 repo = "sendgrid-python"; 23 rev = version; 24 + sha256 = "sha256-6MkAtkbKVoa8UatG92RzbCdAM+WsQN2WnOIh4pRoUVk="; 25 }; 26 27 propagatedBuildInputs = [
+2 -2
pkgs/development/python-modules/srpenergy/default.nix
··· 9 10 buildPythonPackage rec { 11 pname = "srpenergy"; 12 - version = "1.3.5"; 13 14 disabled = pythonOlder "3.6"; 15 ··· 17 owner = "lamoreauxlab"; 18 repo = "srpenergy-api-client-python"; 19 rev = version; 20 - sha256 = "sha256-s90+gzjcG27pUcMGpzf2rf+mR8/fmpvwBXGfvv3rNGI="; 21 }; 22 23 propagatedBuildInputs = [
··· 9 10 buildPythonPackage rec { 11 pname = "srpenergy"; 12 + version = "1.3.6"; 13 14 disabled = pythonOlder "3.6"; 15 ··· 17 owner = "lamoreauxlab"; 18 repo = "srpenergy-api-client-python"; 19 rev = version; 20 + hash = "sha256-aZnqGtfklWgigac2gdkQv29Qy5HC34zGGY2iWr2cOMo="; 21 }; 22 23 propagatedBuildInputs = [
+14 -5
pkgs/development/python-modules/tmb/default.nix
··· 2 , buildPythonPackage 3 , fetchFromGitHub 4 , requests 5 }: 6 7 buildPythonPackage rec { 8 pname = "tmb"; 9 - version = "0.1.1"; 10 11 src = fetchFromGitHub { 12 owner = "alemuro"; 13 repo = pname; 14 rev = version; 15 - sha256 = "sha256-xwzaJuiQxExUA5W4kW7t1713S6NOvDNagcD3/dwA+DE="; 16 }; 17 18 VERSION = version; 19 20 - propagatedBuildInputs = [ requests ]; 21 22 # Project has no tests 23 doCheck = false; 24 - pythonImportsCheck = [ "tmb" ]; 25 26 meta = with lib; { 27 - homepage = "https://github.com/alemuro/tmb"; 28 description = "Python library that interacts with TMB API"; 29 license = with licenses; [ mit ]; 30 maintainers = with maintainers; [ fab ]; 31 };
··· 2 , buildPythonPackage 3 , fetchFromGitHub 4 , requests 5 + , pythonOlder 6 }: 7 8 buildPythonPackage rec { 9 pname = "tmb"; 10 + version = "0.1.3"; 11 + format = "setuptools"; 12 + 13 + disabled = pythonOlder "3.7"; 14 15 src = fetchFromGitHub { 16 owner = "alemuro"; 17 repo = pname; 18 rev = version; 19 + hash = "sha256-/syHSu9LKLDe3awrgSIHh0hV+raWqKd53f43WagHn9c="; 20 }; 21 22 VERSION = version; 23 24 + propagatedBuildInputs = [ 25 + requests 26 + ]; 27 + 28 + pythonImportsCheck = [ 29 + "tmb" 30 + ]; 31 32 # Project has no tests 33 doCheck = false; 34 35 meta = with lib; { 36 description = "Python library that interacts with TMB API"; 37 + homepage = "https://github.com/alemuro/tmb"; 38 license = with licenses; [ mit ]; 39 maintainers = with maintainers; [ fab ]; 40 };
+2 -2
pkgs/development/python-modules/trimesh/default.nix
··· 6 7 buildPythonPackage rec { 8 pname = "trimesh"; 9 - version = "3.9.43"; 10 11 src = fetchPypi { 12 inherit pname version; 13 - sha256 = "f7d4adf2df0fe19ea49c5f3268c33ffe28b3be818d280bb4c113d7463c58ddf9"; 14 }; 15 16 propagatedBuildInputs = [ numpy ];
··· 6 7 buildPythonPackage rec { 8 pname = "trimesh"; 9 + version = "3.10.0"; 10 11 src = fetchPypi { 12 inherit pname version; 13 + sha256 = "sha256-mPsV25oD8FlPSDOGHOX+nLCN/I6RS83l3efUCgavmHY="; 14 }; 15 16 propagatedBuildInputs = [ numpy ];
+2 -2
pkgs/development/python-modules/types-requests/default.nix
··· 6 7 buildPythonPackage rec { 8 pname = "types-requests"; 9 - version = "2.27.8"; 10 format = "setuptools"; 11 12 src = fetchPypi { 13 inherit pname version; 14 - sha256 = "sha256-wvTkdU0HygqI/YqJu8bIqfkPtEH5ybVy/VxITwSBdIY="; 15 }; 16 17 propagatedBuildInputs = [
··· 6 7 buildPythonPackage rec { 8 pname = "types-requests"; 9 + version = "2.27.9"; 10 format = "setuptools"; 11 12 src = fetchPypi { 13 inherit pname version; 14 + sha256 = "sha256-c2iXRTTSl5OUku/f2rIykwRAsR4iA/bfHwxA4yQqh+o="; 15 }; 16 17 propagatedBuildInputs = [
+33 -9
pkgs/development/python-modules/warlock/default.nix
··· 1 { lib 2 , buildPythonPackage 3 - , fetchPypi 4 - , six 5 , jsonpatch 6 , jsonschema 7 - , jsonpointer 8 }: 9 10 buildPythonPackage rec { 11 pname = "warlock"; 12 version = "1.3.3"; 13 14 - src = fetchPypi { 15 - inherit pname version; 16 - sha256 = "a093c4d04b42b7907f69086e476a766b7639dca50d95edc83aef6aeab9db2090"; 17 }; 18 19 - propagatedBuildInputs = [ six jsonpatch jsonschema jsonpointer ]; 20 21 meta = with lib; { 22 homepage = "https://github.com/bcwaldon/warlock"; 23 - description = "Python object model built on JSON schema and JSON patch"; 24 license = licenses.asl20; 25 }; 26 - 27 }
··· 1 { lib 2 , buildPythonPackage 3 + , fetchFromGitHub 4 + , pythonOlder 5 , jsonpatch 6 , jsonschema 7 + , six 8 + , pytestCheckHook 9 }: 10 11 buildPythonPackage rec { 12 pname = "warlock"; 13 version = "1.3.3"; 14 + format = "setuptools"; 15 16 + disabled = pythonOlder "3.7"; 17 + 18 + src = fetchFromGitHub { 19 + owner = "bcwaldon"; 20 + repo = pname; 21 + rev = version; 22 + hash = "sha256-59V4KOwjs/vhA3F3E0j3p5L4JnKPgcExN+mgSWs0Cn0="; 23 }; 24 25 + propagatedBuildInputs = [ 26 + jsonpatch 27 + jsonschema 28 + six 29 + ]; 30 + 31 + checkInputs = [ 32 + pytestCheckHook 33 + ]; 34 + 35 + postPatch = '' 36 + substituteInPlace requirements.txt \ 37 + --replace "jsonschema>=0.7,<4" "jsonschema" 38 + sed -i "/--cov/d" pytest.ini 39 + ''; 40 + 41 + pythonImportsCheck = [ 42 + "warlock" 43 + ]; 44 45 meta = with lib; { 46 + description = "Python object model built on JSON schema and JSON patch"; 47 homepage = "https://github.com/bcwaldon/warlock"; 48 license = licenses.asl20; 49 + maintainers = with maintainers; [ ]; 50 }; 51 }
+2 -2
pkgs/development/tools/analysis/checkov/default.nix
··· 22 23 buildPythonApplication rec { 24 pname = "checkov"; 25 - version = "2.0.812"; 26 27 src = fetchFromGitHub { 28 owner = "bridgecrewio"; 29 repo = pname; 30 rev = version; 31 - hash = "sha256-dCGcg0v83/KJGCvq2jQSemaHJb5wvluN6U73dRer6gY="; 32 }; 33 34 nativeBuildInputs = with py.pkgs; [
··· 22 23 buildPythonApplication rec { 24 pname = "checkov"; 25 + version = "2.0.820"; 26 27 src = fetchFromGitHub { 28 owner = "bridgecrewio"; 29 repo = pname; 30 rev = version; 31 + hash = "sha256-qvYg4tXq9RTYj+pbxg0fZRkTGP8/pk22K9wqMNxVHTo="; 32 }; 33 34 nativeBuildInputs = with py.pkgs; [
+2 -2
pkgs/development/tools/analysis/tfsec/default.nix
··· 5 6 buildGoPackage rec { 7 pname = "tfsec"; 8 - version = "1.1.2"; 9 10 src = fetchFromGitHub { 11 owner = "aquasecurity"; 12 repo = pname; 13 rev = "v${version}"; 14 - sha256 = "sha256-RoXk/wzizlND+WuFy5ZFfryKC9vS31b6SgZH7dPt3Ds="; 15 }; 16 17 goPackagePath = "github.com/aquasecurity/tfsec";
··· 5 6 buildGoPackage rec { 7 pname = "tfsec"; 8 + version = "1.1.3"; 9 10 src = fetchFromGitHub { 11 owner = "aquasecurity"; 12 repo = pname; 13 rev = "v${version}"; 14 + sha256 = "sha256-pJyITEIngSWTDGfCcm8Z6YD6Pkbum0Vk71hqWk+CnUc="; 15 }; 16 17 goPackagePath = "github.com/aquasecurity/tfsec";
+2 -2
pkgs/development/tools/buildah/default.nix
··· 14 15 buildGoModule rec { 16 pname = "buildah"; 17 - version = "1.23.1"; 18 19 src = fetchFromGitHub { 20 owner = "containers"; 21 repo = "buildah"; 22 rev = "v${version}"; 23 - sha256 = "sha256-vAuUA51E1pufn3YvNe4yfqJHXo14iUEA5MzP3/ah+8I="; 24 }; 25 26 outputs = [ "out" "man" ];
··· 14 15 buildGoModule rec { 16 pname = "buildah"; 17 + version = "1.24.1"; 18 19 src = fetchFromGitHub { 20 owner = "containers"; 21 repo = "buildah"; 22 rev = "v${version}"; 23 + sha256 = "sha256-Dl1ZTYzwZ3tl5k9uPnnKHObmTP6Xsw0P1LdPqCfd/d0="; 24 }; 25 26 outputs = [ "out" "man" ];
+3 -3
pkgs/development/tools/misc/reviewdog/default.nix
··· 2 3 buildGoModule rec { 4 pname = "reviewdog"; 5 - version = "0.13.0"; 6 7 src = fetchFromGitHub { 8 owner = pname; 9 repo = pname; 10 rev = "v${version}"; 11 - sha256 = "sha256-PneUN59ddYvhVIXqZeDCh0tWADkRTU9Dj0HNf0V8s3g="; 12 }; 13 14 - vendorSha256 = "sha256-NI5pzKfUTjXqDukeQ1wFN/D0TBeXfDPGL69oEL7reCE="; 15 16 doCheck = false; 17
··· 2 3 buildGoModule rec { 4 pname = "reviewdog"; 5 + version = "0.13.1"; 6 7 src = fetchFromGitHub { 8 owner = pname; 9 repo = pname; 10 rev = "v${version}"; 11 + sha256 = "sha256-IBAJePrqliriOkZRWLAU7hllpGr4DVs8rzD2yyOXZzM="; 12 }; 13 14 + vendorSha256 = "sha256-6TBurIWct6k4X+0lZ9FYgTc+DQgTpEIS7HUr0V7n++I="; 15 16 doCheck = false; 17
+2 -2
pkgs/development/tools/mold/default.nix
··· 12 13 stdenv.mkDerivation rec { 14 pname = "mold"; 15 - version = "1.0.2"; 16 17 src = fetchFromGitHub { 18 owner = "rui314"; 19 repo = pname; 20 rev = "v${version}"; 21 - sha256 = "sha256-0TXk+6hS6TJHwhowYzL8ABw3iyfVwPttJWKQ9RfzMSI="; 22 }; 23 24 buildInputs = [ zlib openssl ];
··· 12 13 stdenv.mkDerivation rec { 14 pname = "mold"; 15 + version = "1.0.3"; 16 17 src = fetchFromGitHub { 18 owner = "rui314"; 19 repo = pname; 20 rev = "v${version}"; 21 + sha256 = "sha256-L/io0kMYkFVSmOiH6sM/CoibE1rPRwDM0fFddw6kM+4="; 22 }; 23 24 buildInputs = [ zlib openssl ];
+2 -2
pkgs/development/tools/sumneko-lua-language-server/default.nix
··· 4 in 5 stdenv.mkDerivation rec { 6 pname = "sumneko-lua-language-server"; 7 - version = "2.6.0"; 8 9 src = fetchFromGitHub { 10 owner = "sumneko"; 11 repo = "lua-language-server"; 12 rev = version; 13 - sha256 = "sha256-8Vfk6B85anlUf09cc08hOGujbcVCMqgEJ1PTxX6llrk="; 14 fetchSubmodules = true; 15 }; 16
··· 4 in 5 stdenv.mkDerivation rec { 6 pname = "sumneko-lua-language-server"; 7 + version = "2.6.4"; 8 9 src = fetchFromGitHub { 10 owner = "sumneko"; 11 repo = "lua-language-server"; 12 rev = version; 13 + sha256 = "sha256-oUIgEWLcpEZHtL1wvTAezLtz2PecddtwhzbLhGqso/k="; 14 fetchSubmodules = true; 15 }; 16
+2 -2
pkgs/development/tools/symfony-cli/default.nix
··· 2 3 buildGoModule rec { 4 pname = "symfony-cli"; 5 - version = "5.3.0"; 6 vendorSha256 = "sha256-i4p9kEe0eT2L4U/DjkWlLVqgGT5ZJaoGyFAoYyxmoyI="; 7 8 src = fetchFromGitHub { 9 owner = "symfony-cli"; 10 repo = "symfony-cli"; 11 rev = "v${version}"; 12 - sha256 = "sha256-bZPoHVYso2BEEZO4FXubxOtGCIJyX77Ll0qut5sJjUA="; 13 }; 14 15 # Tests requires network access
··· 2 3 buildGoModule rec { 4 pname = "symfony-cli"; 5 + version = "5.3.3"; 6 vendorSha256 = "sha256-i4p9kEe0eT2L4U/DjkWlLVqgGT5ZJaoGyFAoYyxmoyI="; 7 8 src = fetchFromGitHub { 9 owner = "symfony-cli"; 10 repo = "symfony-cli"; 11 rev = "v${version}"; 12 + sha256 = "sha256-qLgcv6vjPiNJZuZzW0mSKxySz0GdNALtyZ6E3fL3B6Y="; 13 }; 14 15 # Tests requires network access
+2 -2
pkgs/development/tools/vultr-cli/default.nix
··· 2 3 buildGoModule rec { 4 pname = "vultr-cli"; 5 - version = "2.12.0"; 6 7 src = fetchFromGitHub { 8 owner = "vultr"; 9 repo = pname; 10 rev = "v${version}"; 11 - sha256 = "sha256-mT99flZAAhLSynD/8+fa74Mc3KK8pVs+OOFDYNSBzEE="; 12 }; 13 14 vendorSha256 = null;
··· 2 3 buildGoModule rec { 4 pname = "vultr-cli"; 5 + version = "2.12.1"; 6 7 src = fetchFromGitHub { 8 owner = "vultr"; 9 repo = pname; 10 rev = "v${version}"; 11 + sha256 = "sha256-jcZiCZn6AbrjEhMkJQloLhZmfnxqlZxu5TXqH+dDN0s="; 12 }; 13 14 vendorSha256 = null;
+3 -3
pkgs/development/tools/wrangler/default.nix
··· 2 3 rustPlatform.buildRustPackage rec { 4 pname = "wrangler"; 5 - version = "1.19.7"; 6 7 src = fetchFromGitHub { 8 owner = "cloudflare"; 9 repo = pname; 10 rev = "v${version}"; 11 - sha256 = "sha256-1Bb4vpmWtSW2E2gr6V+tDsc4P5FJfCLLpzQX2WiVzUg="; 12 }; 13 14 - cargoSha256 = "sha256-iAlRdUMR+64ngRT4icY6sTFFeRt4aShV/hj8PXJ0kEk="; 15 16 nativeBuildInputs = [ pkg-config ]; 17
··· 2 3 rustPlatform.buildRustPackage rec { 4 pname = "wrangler"; 5 + version = "1.19.8"; 6 7 src = fetchFromGitHub { 8 owner = "cloudflare"; 9 repo = pname; 10 rev = "v${version}"; 11 + sha256 = "sha256-vJjAN7RmB1J4k7p2emfbjJxkpfph6piinmqVTR67HW0="; 12 }; 13 14 + cargoSha256 = "sha256-dDQvcYnceBPDc+yeePjZ1k4a2ujCSh1hJMYFjPGw/bE="; 15 16 nativeBuildInputs = [ pkg-config ]; 17
+5
pkgs/games/anki/default.nix
··· 116 url = "https://sources.debian.org/data/main/a/anki/2.1.15+dfsg-3/debian/patches/fix-mpv-args.patch"; 117 sha256 = "1dimnnawk64m5bbdbjrxw5k08q95l728n94cgkrrwxwavmmywaj2"; 118 }) 119 ]; 120 121 # Anki does not use setup.py
··· 116 url = "https://sources.debian.org/data/main/a/anki/2.1.15+dfsg-3/debian/patches/fix-mpv-args.patch"; 117 sha256 = "1dimnnawk64m5bbdbjrxw5k08q95l728n94cgkrrwxwavmmywaj2"; 118 }) 119 + (fetchpatch { 120 + name = "anki-2.1.15-unescape.patch"; 121 + url = "https://795309.bugs.gentoo.org/attachment.cgi?id=715200"; 122 + sha256 = "14rz864kdaba4fd1marwkyz9n1jiqnbjy4al8bvwlhpvp0rm1qk6"; 123 + }) 124 ]; 125 126 # Anki does not use setup.py
+7 -3
pkgs/misc/vscode-extensions/python/default.nix
··· 72 icu 73 curl 74 openssl 75 lttng-ust-2-10 76 musl 77 ]; 78 79 nativeBuildInputs = [ 80 autoPatchelfHook 81 - python3.pkgs.wrapPython 82 ]; 83 84 pythonPath = with python3.pkgs; [ ··· 101 cd pythonFiles/lib/python/debugpy/_vendored/pydevd/pydevd_attach_to_process 102 declare kept_aside="${{ 103 "x86_64-linux" = "attach_linux_amd64.so"; 104 }.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}")}" 105 mv "$kept_aside" "$kept_aside.hidden" 106 rm *.so *.dylib *.dll *.exe *.pdb ··· 118 119 meta = with lib; { 120 license = licenses.mit; 121 - platforms = [ "x86_64-linux" ]; 122 - maintainers = [ maintainers.jraygauthier ]; 123 }; 124 }
··· 72 icu 73 curl 74 openssl 75 + ] ++ lib.optionals stdenv.isLinux [ 76 lttng-ust-2-10 77 musl 78 ]; 79 80 nativeBuildInputs = [ 81 + python3.pkgs.wrapPython 82 + ] ++ lib.optionals stdenv.isLinux [ 83 autoPatchelfHook 84 ]; 85 86 pythonPath = with python3.pkgs; [ ··· 103 cd pythonFiles/lib/python/debugpy/_vendored/pydevd/pydevd_attach_to_process 104 declare kept_aside="${{ 105 "x86_64-linux" = "attach_linux_amd64.so"; 106 + "aarch64-darwin" = "attach_x86_64.dylib"; 107 + "x86_64-darwin" = "attach_x86_64.dylib"; 108 }.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}")}" 109 mv "$kept_aside" "$kept_aside.hidden" 110 rm *.so *.dylib *.dll *.exe *.pdb ··· 122 123 meta = with lib; { 124 license = licenses.mit; 125 + platforms = [ "x86_64-linux" "aarch64-darwin" "x86_64-darwin" ]; 126 + maintainers = with maintainers; [ jraygauthier jfchevrette ]; 127 }; 128 }
+4 -2
pkgs/servers/home-assistant/component-packages.nix
··· 761 "sendgrid" = ps: with ps; [ sendgrid ]; 762 "sense" = ps: with ps; [ sense-energy ]; 763 "sensehat" = ps: with ps; [ ]; # missing inputs: sense-hat 764 - "senseme" = ps: with ps; [ ]; # missing inputs: aiosenseme 765 "sensibo" = ps: with ps; [ ]; # missing inputs: pysensibo 766 "sensor" = ps: with ps; [ sqlalchemy ]; 767 "sentry" = ps: with ps; [ sentry-sdk ]; ··· 835 "statistics" = ps: with ps; [ sqlalchemy ]; 836 "statsd" = ps: with ps; [ statsd ]; 837 "steam_online" = ps: with ps; [ ]; # missing inputs: steamodd 838 - "steamist" = ps: with ps; [ aiohttp-cors ifaddr ]; # missing inputs: aiosteamist discovery30303 839 "stiebel_eltron" = ps: with ps; [ pymodbus ]; # missing inputs: pystiebeleltron 840 "stookalert" = ps: with ps; [ ]; # missing inputs: stookalert 841 "stream" = ps: with ps; [ pyturbojpeg aiohttp-cors av ]; ··· 1460 "season" 1461 "select" 1462 "sense" 1463 "sensor" 1464 "sentry" 1465 "seventeentrack" ··· 1507 "startca" 1508 "statistics" 1509 "statsd" 1510 "stream" 1511 "stt" 1512 "subaru"
··· 761 "sendgrid" = ps: with ps; [ sendgrid ]; 762 "sense" = ps: with ps; [ sense-energy ]; 763 "sensehat" = ps: with ps; [ ]; # missing inputs: sense-hat 764 + "senseme" = ps: with ps; [ aiosenseme ]; 765 "sensibo" = ps: with ps; [ ]; # missing inputs: pysensibo 766 "sensor" = ps: with ps; [ sqlalchemy ]; 767 "sentry" = ps: with ps; [ sentry-sdk ]; ··· 835 "statistics" = ps: with ps; [ sqlalchemy ]; 836 "statsd" = ps: with ps; [ statsd ]; 837 "steam_online" = ps: with ps; [ ]; # missing inputs: steamodd 838 + "steamist" = ps: with ps; [ aiohttp-cors aiosteamist discovery30303 ifaddr ]; 839 "stiebel_eltron" = ps: with ps; [ pymodbus ]; # missing inputs: pystiebeleltron 840 "stookalert" = ps: with ps; [ ]; # missing inputs: stookalert 841 "stream" = ps: with ps; [ pyturbojpeg aiohttp-cors av ]; ··· 1460 "season" 1461 "select" 1462 "sense" 1463 + "senseme" 1464 "sensor" 1465 "sentry" 1466 "seventeentrack" ··· 1508 "startca" 1509 "statistics" 1510 "statsd" 1511 + "steamist" 1512 "stream" 1513 "stt" 1514 "subaru"
+3 -3
pkgs/servers/klipper/default.nix
··· 6 }: 7 stdenv.mkDerivation rec { 8 pname = "klipper"; 9 - version = "unstable-2022-01-09"; 10 11 src = fetchFromGitHub { 12 owner = "KevinOConnor"; 13 repo = "klipper"; 14 - rev = "6e6ad7b5201d3452aa605f4ae852c51239c2c7d8"; 15 - sha256 = "sha256-cflcGweEjB0xj2LhYJzyvqFSQen2vhYXlL7lz/HoGaM="; 16 }; 17 18 sourceRoot = "source/klippy";
··· 6 }: 7 stdenv.mkDerivation rec { 8 pname = "klipper"; 9 + version = "unstable-2022-02-07"; 10 11 src = fetchFromGitHub { 12 owner = "KevinOConnor"; 13 repo = "klipper"; 14 + rev = "6d7c03365ad13c4661675aaccd0a3dc5be544493"; 15 + sha256 = "sha256-xFSZkOFETGcJXA6CUCReoyNZXhDAfgKkWoeDRqueBVw="; 16 }; 17 18 sourceRoot = "source/klippy";
+4
pkgs/servers/sql/proxysql/default.nix
··· 129 130 sed -i s_/usr/bin/env_${coreutils}/bin/env_g libssl/openssl/config 131 132 popd 133 patchShebangs . 134 '';
··· 129 130 sed -i s_/usr/bin/env_${coreutils}/bin/env_g libssl/openssl/config 131 132 + # https://github.com/sysown/proxysql/issues/3679 133 + # TODO: remove when upgrading past 2.3.2 134 + sed -i -e 's@^\(\s\+cd curl/curl \&\& ./configure .*\) \(--with-ssl=.*\)$@\1 --without-zstd \2@' Makefile 135 + 136 popd 137 patchShebangs . 138 '';
+2 -2
pkgs/tools/backup/btrbk/default.nix
··· 18 19 stdenv.mkDerivation rec { 20 pname = "btrbk"; 21 - version = "0.31.3"; 22 23 src = fetchurl { 24 url = "https://digint.ch/download/btrbk/releases/${pname}-${version}.tar.xz"; 25 - sha256 = "1lx7vnf386nsik8mxrrfyx1h7mkqk5zs26sy0s0lynfxcm4lkxb2"; 26 }; 27 28 nativeBuildInputs = [ asciidoctor makeWrapper ];
··· 18 19 stdenv.mkDerivation rec { 20 pname = "btrbk"; 21 + version = "0.32.0"; 22 23 src = fetchurl { 24 url = "https://digint.ch/download/btrbk/releases/${pname}-${version}.tar.xz"; 25 + sha256 = "HmvNtIgFfeaiFuSRobWlcJqusPSYtqAqx+79+CeNVDQ="; 26 }; 27 28 nativeBuildInputs = [ asciidoctor makeWrapper ];
+26
pkgs/tools/filesystems/garage/default.nix
···
··· 1 + { lib, rustPlatform, fetchFromGitea, testVersion, garage }: 2 + rustPlatform.buildRustPackage rec { 3 + pname = "garage"; 4 + version = "0.6.0"; 5 + 6 + src = fetchFromGitea { 7 + domain = "git.deuxfleurs.fr"; 8 + owner = "Deuxfleurs"; 9 + repo = "garage"; 10 + rev = "v${version}"; 11 + sha256 = "sha256-NNjqDOkMMRyXce+Z7RQpuffCuVhA1U3qH30rSv939ks="; 12 + }; 13 + 14 + cargoSha256 = "sha256-eKJxRcC43D8qVLORer34tlmsWhELTbcJbZLyf0MB618="; 15 + 16 + passthru = { 17 + tests.version = testVersion { package = garage; }; 18 + }; 19 + 20 + meta = { 21 + description = "S3-compatible object store for small self-hosted geo-distributed deployments"; 22 + homepage = "https://garagehq.deuxfleurs.fr"; 23 + license = lib.licenses.agpl3Only; 24 + maintainers = with lib.maintainers; [ nickcao _0x4A6F ]; 25 + }; 26 + }
+1
pkgs/tools/filesystems/mtpfs/default.nix
··· 25 platforms = platforms.all; 26 license = licenses.gpl3; 27 maintainers = [ maintainers.qknight ]; 28 }; 29 }
··· 25 platforms = platforms.all; 26 license = licenses.gpl3; 27 maintainers = [ maintainers.qknight ]; 28 + broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/mtpfs.x86_64-darwin 29 }; 30 }
+3 -3
pkgs/tools/graphics/svgbob/default.nix
··· 2 3 rustPlatform.buildRustPackage rec { 4 pname = "svgbob"; 5 - version = "0.6.2"; 6 7 src = fetchCrate { 8 inherit version; 9 crateName = "svgbob_cli"; 10 - sha256 = "sha256-9JASoUN/VzZS8ihepTQL2SXZitxKBMSJEv+13vzQd3w="; 11 }; 12 13 - cargoSha256 = "sha256-pkdiow+9gsQ9rrSHwukd17r5CfsaJgYj6KA4wYKbtA0="; 14 15 meta = with lib; { 16 description = "Convert your ascii diagram scribbles into happy little SVG";
··· 2 3 rustPlatform.buildRustPackage rec { 4 pname = "svgbob"; 5 + version = "0.6.3"; 6 7 src = fetchCrate { 8 inherit version; 9 crateName = "svgbob_cli"; 10 + sha256 = "sha256-yYRBV0s19J0M02wenGayy7Ebx6wDhiLiGmb+os29u9I="; 11 }; 12 13 + cargoSha256 = "sha256-R4W+Oe7Ks2D9qE1IpV6/AMMMwZnCfJ5DzxFAMpV2rFE="; 14 15 meta = with lib; { 16 description = "Convert your ascii diagram scribbles into happy little SVG";
+2 -2
pkgs/tools/misc/ddcutil/default.nix
··· 15 16 stdenv.mkDerivation rec { 17 pname = "ddcutil"; 18 - version = "1.2.1"; 19 20 src = fetchFromGitHub { 21 owner = "rockowitz"; 22 repo = "ddcutil"; 23 rev = "v${version}"; 24 - sha256 = "sha256-mIYxGoITaFlHgqAfB6ZZFR3spGD0BElJZJJqFGM4r/I="; 25 }; 26 27 nativeBuildInputs = [ autoreconfHook pkg-config ];
··· 15 16 stdenv.mkDerivation rec { 17 pname = "ddcutil"; 18 + version = "1.2.2"; 19 20 src = fetchFromGitHub { 21 owner = "rockowitz"; 22 repo = "ddcutil"; 23 rev = "v${version}"; 24 + sha256 = "0hbd2ybpqmm96icg387vr57dqkdbc20vyimqjq5yx0sdlp4ikzi7"; 25 }; 26 27 nativeBuildInputs = [ autoreconfHook pkg-config ];
+3 -2
pkgs/tools/misc/esphome/dashboard.nix
··· 1 { lib 2 - , python3 3 }: 4 5 - with python3.pkgs; buildPythonPackage rec { 6 pname = "esphome-dashboard"; 7 version = "20220116.0"; 8
··· 1 { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 }: 5 6 + buildPythonPackage rec { 7 pname = "esphome-dashboard"; 8 version = "20220116.0"; 9
+1 -2
pkgs/tools/misc/esphome/default.nix
··· 1 { lib 2 - , pkgs 3 , python3 4 , fetchFromGitHub 5 , fetchpatch ··· 11 let 12 python = python3.override { 13 packageOverrides = self: super: { 14 - esphome-dashboard = pkgs.callPackage ./dashboard.nix {}; 15 }; 16 }; 17 in
··· 1 { lib 2 , python3 3 , fetchFromGitHub 4 , fetchpatch ··· 10 let 11 python = python3.override { 12 packageOverrides = self: super: { 13 + esphome-dashboard = self.callPackage ./dashboard.nix {}; 14 }; 15 }; 16 in
+13 -5
pkgs/tools/misc/txr/default.nix
··· 1 - { lib, stdenv, fetchurl, bison, flex, libffi }: 2 3 stdenv.mkDerivation rec { 4 pname = "txr"; 5 - version = "231"; 6 7 src = fetchurl { 8 url = "http://www.kylheku.com/cgit/txr/snapshot/${pname}-${version}.tar.bz2"; 9 - sha256 = "0mcglb84zfmrai2bcdg9j0ck8jp8h7ii2rf4m38yjggy0dvii2lc"; 10 }; 11 12 nativeBuildInputs = [ bison flex ]; ··· 17 doCheck = true; 18 checkTarget = "tests"; 19 20 - # Remove failing test-- mentions 'usr/bin' so probably related :) 21 - preCheck = "rm -rf tests/017"; 22 23 postInstall = '' 24 d=$out/share/vim-plugins/txr
··· 1 + { lib, stdenv, fetchurl, bison, flex, libffi, coreutils }: 2 3 stdenv.mkDerivation rec { 4 pname = "txr"; 5 + version = "273"; 6 7 src = fetchurl { 8 url = "http://www.kylheku.com/cgit/txr/snapshot/${pname}-${version}.tar.bz2"; 9 + sha256 = "sha256-l0o60NktIsKn720kO8xzySQBMAVrfYhhWZ8L5K8QrUg="; 10 }; 11 12 nativeBuildInputs = [ bison flex ]; ··· 17 doCheck = true; 18 checkTarget = "tests"; 19 20 + postPatch = '' 21 + # Fixup references to /usr/bin in tests 22 + substituteInPlace tests/017/realpath.tl --replace /usr/bin /bin 23 + substituteInPlace tests/017/realpath.expected --replace /usr/bin /bin 24 + 25 + substituteInPlace tests/018/process.tl --replace /usr/bin/env ${lib.getBin coreutils}/bin/env 26 + ''; 27 + 28 + # Remove failing tests -- 018/chmod tries setting sticky bit 29 + preCheck = "rm -rf tests/018/chmod*"; 30 31 postInstall = '' 32 d=$out/share/vim-plugins/txr
+3 -3
pkgs/tools/misc/vector/default.nix
··· 29 30 let 31 pname = "vector"; 32 - version = "0.19.1"; 33 in 34 rustPlatform.buildRustPackage { 35 inherit pname version; ··· 38 owner = "timberio"; 39 repo = pname; 40 rev = "v${version}"; 41 - sha256 = "sha256-ty+tsT3nkdYN7/avG1imIwWKAmtPA3NPjhrtoADciQs="; 42 }; 43 44 - cargoSha256 = "sha256-dYIAbjBBnEsCGt5ceV+jG0hsu8dcAH4V+wnfm6Chw8Q="; 45 nativeBuildInputs = [ pkg-config cmake ]; 46 buildInputs = [ oniguruma openssl protobuf rdkafka zstd ] 47 ++ lib.optionals stdenv.isDarwin [ Security libiconv coreutils CoreServices ];
··· 29 30 let 31 pname = "vector"; 32 + version = "0.19.2"; 33 in 34 rustPlatform.buildRustPackage { 35 inherit pname version; ··· 38 owner = "timberio"; 39 repo = pname; 40 rev = "v${version}"; 41 + sha256 = "sha256-fTi9Xu/abQAiVCokfieJUgAtPaqUKw6LJQFqMBoW5yc="; 42 }; 43 44 + cargoSha256 = "sha256-1bxlO9vuNuPLTLhXwcR6mgOpZwFgdXvGVps5b5ioKJc="; 45 nativeBuildInputs = [ pkg-config cmake ]; 46 buildInputs = [ oniguruma openssl protobuf rdkafka zstd ] 47 ++ lib.optionals stdenv.isDarwin [ Security libiconv coreutils CoreServices ];
+5 -6
pkgs/tools/networking/opensnitch/daemon.nix
··· 10 , coreutils 11 , iptables 12 , makeWrapper 13 }: 14 15 buildGoModule rec { 16 pname = "opensnitch"; 17 - version = "1.4.3"; 18 19 src = fetchFromGitHub { 20 owner = "evilsocket"; 21 repo = "opensnitch"; 22 rev = "v${version}"; 23 - sha256 = "1c2v2x8hfqk524sa42vry74lda4lg6ii40ljk2qx9j2f69446sva"; 24 }; 25 26 patches = [ ··· 31 url = "https://github.com/evilsocket/opensnitch/commit/8a3f63f36aa92658217bbbf46d39e6d20b2c0791.patch"; 32 sha256 = "sha256-WkwjKTQZppR0nqvRO4xiQoKZ307NvuUwoRx+boIpuTg="; 33 }) 34 - # Upstream has inconsistent vendoring 35 - ./go-mod.patch 36 ]; 37 38 modRoot = "daemon"; 39 40 buildInputs = [ libnetfilter_queue libnfnetlink ]; 41 42 - nativeBuildInputs = [ pkg-config protobuf go-protobuf makeWrapper ]; 43 44 - vendorSha256 = "sha256-sTfRfsvyiFk1bcga009W6jD6RllrySRAU6B/8mF6+ow="; 45 46 preBuild = '' 47 make -C ../proto ../daemon/ui/protocol/ui.pb.go
··· 10 , coreutils 11 , iptables 12 , makeWrapper 13 + , protoc-gen-go-grpc 14 }: 15 16 buildGoModule rec { 17 pname = "opensnitch"; 18 + version = "1.5.0"; 19 20 src = fetchFromGitHub { 21 owner = "evilsocket"; 22 repo = "opensnitch"; 23 rev = "v${version}"; 24 + sha256 = "sha256-vtD82v0VlaJtCICXduD3IxJ0xjlBuzGKLWLoCiwPX2I="; 25 }; 26 27 patches = [ ··· 32 url = "https://github.com/evilsocket/opensnitch/commit/8a3f63f36aa92658217bbbf46d39e6d20b2c0791.patch"; 33 sha256 = "sha256-WkwjKTQZppR0nqvRO4xiQoKZ307NvuUwoRx+boIpuTg="; 34 }) 35 ]; 36 37 modRoot = "daemon"; 38 39 buildInputs = [ libnetfilter_queue libnfnetlink ]; 40 41 + nativeBuildInputs = [ pkg-config protobuf go-protobuf makeWrapper protoc-gen-go-grpc ]; 42 43 + vendorSha256 = "sha256-81BKMLuEXA/NeIjO7icBm48ROq6KxAxHtvP0nV5yM5A="; 44 45 preBuild = '' 46 make -C ../proto ../daemon/ui/protocol/ui.pb.go
-24
pkgs/tools/networking/opensnitch/go-mod.patch
··· 1 - diff --git a/daemon/go.mod b/daemon/go.mod 2 - index ec21c04..a859bfb 100644 3 - --- a/daemon/go.mod 4 - +++ b/daemon/go.mod 5 - @@ -5,17 +5,12 @@ go 1.14 6 - require ( 7 - github.com/evilsocket/ftrace v1.2.0 8 - github.com/fsnotify/fsnotify v1.4.7 9 - - github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b // indirect 10 - - github.com/golang/protobuf v1.5.0 11 - github.com/google/gopacket v1.1.14 12 - github.com/google/nftables v0.0.0-20210514154851-a285acebcad3 13 - github.com/iovisor/gobpf v0.2.0 14 - github.com/vishvananda/netlink v1.1.0 15 - - github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df // indirect 16 - - golang.org/x/net v0.0.0-20190311183353-d8887717615a 17 - - golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208 // indirect 18 - - golang.org/x/sys v0.0.0-20190606203320-7fc4e5ec1444 // indirect 19 - - golang.org/x/text v0.3.0 // indirect 20 - + golang.org/x/net v0.0.0-20191028085509-fe3aa8a45271 21 - + golang.org/x/sys v0.0.0-20191029155521-f43be2a4598c 22 - google.golang.org/grpc v1.27.0 23 - google.golang.org/protobuf v1.26.0 24 - )
···
+7 -2
pkgs/tools/networking/opensnitch/ui.nix
··· 6 7 python3Packages.buildPythonApplication rec { 8 pname = "opensnitch-ui"; 9 - version = "1.4.3"; 10 11 src = fetchFromGitHub { 12 owner = "evilsocket"; 13 repo = "opensnitch"; 14 rev = "v${version}"; 15 - sha256 = "sha256-amtDSDJOyNSxmJICEqN5lKhGyfF5C6I0EWViB1EXW7A="; 16 }; 17 18 nativeBuildInputs = [ ··· 26 unidecode 27 unicode-slugify 28 pyinotify 29 ]; 30 31 preBuild = '' ··· 47 48 dontWrapQtApps = true; 49 makeWrapperArgs = [ "\${qtWrapperArgs[@]}" ]; 50 51 meta = with lib; { 52 description = "An application firewall";
··· 6 7 python3Packages.buildPythonApplication rec { 8 pname = "opensnitch-ui"; 9 + version = "1.5.0"; 10 11 src = fetchFromGitHub { 12 owner = "evilsocket"; 13 repo = "opensnitch"; 14 rev = "v${version}"; 15 + sha256 = "sha256-vtD82v0VlaJtCICXduD3IxJ0xjlBuzGKLWLoCiwPX2I="; 16 }; 17 18 nativeBuildInputs = [ ··· 26 unidecode 27 unicode-slugify 28 pyinotify 29 + notify2 30 + # pyasn # dpendency missing but not mandatory 31 ]; 32 33 preBuild = '' ··· 49 50 dontWrapQtApps = true; 51 makeWrapperArgs = [ "\${qtWrapperArgs[@]}" ]; 52 + 53 + # All tests are sandbox-incompatible and disabled for now 54 + doCheck = false; 55 56 meta = with lib; { 57 description = "An application firewall";
+2 -2
pkgs/tools/security/cfripper/default.nix
··· 5 6 python3.pkgs.buildPythonApplication rec { 7 pname = "cfripper"; 8 - version = "1.3.1"; 9 10 src = fetchFromGitHub { 11 owner = "Skyscanner"; 12 repo = pname; 13 rev = version; 14 - hash = "sha256-BWdXSHIicMa3PgGoF4GGAOh2LAJWt+7svMLFGhWIkn0="; 15 }; 16 17 propagatedBuildInputs = with python3.pkgs; [
··· 5 6 python3.pkgs.buildPythonApplication rec { 7 pname = "cfripper"; 8 + version = "1.3.3"; 9 10 src = fetchFromGitHub { 11 owner = "Skyscanner"; 12 repo = pname; 13 rev = version; 14 + hash = "sha256-y3h/atfFl/wDmr+YBdsWrCez4PQBEcl3xNDyTwXZIp4="; 15 }; 16 17 propagatedBuildInputs = with python3.pkgs; [
+14 -8
pkgs/tools/security/chipsec/default.nix
··· 10 11 python3.pkgs.buildPythonApplication rec { 12 pname = "chipsec"; 13 - version = "1.6.1"; 14 disabled = !stdenv.isLinux; 15 16 src = fetchFromGitHub { 17 owner = "chipsec"; 18 repo = "chipsec"; 19 rev = version; 20 - sha256 = "01sp24z63r3nqxx57zc4873b8i5dqipy7yrxzrwjns531vznhiy2"; 21 }; 22 23 patches = lib.optionals withDriver [ ./ko-path.diff ./compile-ko.diff ]; ··· 29 nasm 30 ]; 31 32 - checkInputs = [ 33 - python3.pkgs.distro 34 - python3.pkgs.pytestCheckHook 35 ]; 36 37 preBuild = lib.optionalString withDriver '' ··· 45 $out/${python3.pkgs.python.sitePackages}/drivers/linux/chipsec.ko 46 ''; 47 48 - setupPyBuildFlags = [ "--build-lib=$CHIPSEC_BUILD_LIB" ] 49 - ++ lib.optional (!withDriver) "--skip-driver"; 50 51 - pythonImportsCheck = [ "chipsec" ]; 52 53 meta = with lib; { 54 description = "Platform Security Assessment Framework";
··· 10 11 python3.pkgs.buildPythonApplication rec { 12 pname = "chipsec"; 13 + version = "1.8.1"; 14 + 15 disabled = !stdenv.isLinux; 16 17 src = fetchFromGitHub { 18 owner = "chipsec"; 19 repo = "chipsec"; 20 rev = version; 21 + hash = "sha256-bK8wlwhP0pi8rOs8ysbSZ+0aZOaX4mckfH/p4OLGnes="; 22 }; 23 24 patches = lib.optionals withDriver [ ./ko-path.diff ./compile-ko.diff ]; ··· 30 nasm 31 ]; 32 33 + checkInputs = with python3.pkgs; [ 34 + distro 35 + pytestCheckHook 36 ]; 37 38 preBuild = lib.optionalString withDriver '' ··· 46 $out/${python3.pkgs.python.sitePackages}/drivers/linux/chipsec.ko 47 ''; 48 49 + setupPyBuildFlags = [ 50 + "--build-lib=$CHIPSEC_BUILD_LIB" 51 + ] ++ lib.optional (!withDriver) [ 52 + "--skip-driver" 53 + ]; 54 55 + pythonImportsCheck = [ 56 + "chipsec" 57 + ]; 58 59 meta = with lib; { 60 description = "Platform Security Assessment Framework";
+24 -10
pkgs/tools/security/haveged/default.nix
··· 1 - { lib, stdenv, fetchurl }: 2 3 stdenv.mkDerivation rec { 4 pname = "haveged"; 5 - version = "1.9.2"; 6 7 - src = fetchurl { 8 - url = "http://www.issihosts.com/haveged/haveged-${version}.tar.gz"; 9 - sha256 = "0w5ypz6451msckivjriwyw8djydlwffam7x23xh626s2vzdrlzgp"; 10 }; 11 12 - meta = { 13 description = "A simple entropy daemon"; 14 longDescription = '' 15 The haveged project is an attempt to provide an easy-to-use, unpredictable ··· 19 of haveged is directed towards improving overall reliability and adaptability while minimizing 20 the barriers to using haveged for other tasks. 21 ''; 22 - homepage = "http://www.issihosts.com/haveged/"; 23 - license = lib.licenses.gpl3; 24 - maintainers = [ lib.maintainers.domenkozar ]; 25 - platforms = lib.platforms.unix; 26 }; 27 }
··· 1 + { lib, stdenv, fetchFromGitHub }: 2 3 stdenv.mkDerivation rec { 4 pname = "haveged"; 5 + version = "1.9.15"; 6 7 + src = fetchFromGitHub { 8 + owner = "jirka-h"; 9 + repo = "haveged"; 10 + rev = "v${version}"; 11 + sha256 = "sha256-bU+/lRx0RAqHheNQ9CWT/V0oZnZd0W9EHhhX3RRIZ/0="; 12 }; 13 14 + strictDeps = true; 15 + 16 + postPatch = '' 17 + patchShebangs ent # test shebang 18 + ''; 19 + 20 + installFlags = [ 21 + "sbindir=$(out)/bin" # no reason for us to have a $out/sbin, its just a symlink to $out/bin 22 + ]; 23 + 24 + doCheck = true; 25 + 26 + meta = with lib; { 27 description = "A simple entropy daemon"; 28 longDescription = '' 29 The haveged project is an attempt to provide an easy-to-use, unpredictable ··· 33 of haveged is directed towards improving overall reliability and adaptability while minimizing 34 the barriers to using haveged for other tasks. 35 ''; 36 + homepage = "https://github.com/jirka-h/haveged"; 37 + license = licenses.gpl3; 38 + maintainers = with maintainers; [ domenkozar ]; 39 + platforms = platforms.unix; 40 }; 41 }
+3 -3
pkgs/tools/security/kubescape/default.nix
··· 6 7 buildGoModule rec { 8 pname = "kubescape"; 9 - version = "2.0.144"; 10 11 src = fetchFromGitHub { 12 owner = "armosec"; 13 repo = pname; 14 rev = "v${version}"; 15 - hash = "sha256-X/r39lvNSLZ4SG/x5Woj7c0fEOp8USyeTWYihaY0faU="; 16 }; 17 18 nativeBuildInputs = [ 19 installShellFiles 20 ]; 21 22 - vendorSha256 = "sha256-gB1/WkGC3sgMqmA4F9/dGU0R0hIDwwTVBNNsY6Yj8KU="; 23 24 ldflags = [ 25 "-s"
··· 6 7 buildGoModule rec { 8 pname = "kubescape"; 9 + version = "2.0.146"; 10 11 src = fetchFromGitHub { 12 owner = "armosec"; 13 repo = pname; 14 rev = "v${version}"; 15 + hash = "sha256-OSpT6S0jCw/svWl4q9CyZUwUB/cFAyiyWt+oXKVPSJ0="; 16 }; 17 18 nativeBuildInputs = [ 19 installShellFiles 20 ]; 21 22 + vendorSha256 = "sha256-p2bLZfwsSevaiAqciCfEvpdOx3WlVdWBHVXtLBMjLGA="; 23 24 ldflags = [ 25 "-s"
+3 -3
pkgs/tools/security/step-ca/default.nix
··· 12 13 buildGoModule rec { 14 pname = "step-ca"; 15 - version = "0.18.0"; 16 17 src = fetchFromGitHub { 18 owner = "smallstep"; 19 repo = "certificates"; 20 rev = "v${version}"; 21 - sha256 = "sha256-f9sp5sAWysOOoIdCiCJxTWRhyt0wfpO5p4pxW6jj0xc="; 22 }; 23 24 - vendorSha256 = "sha256-iDfPCRU91cuZsKqNOjkLGYmWf8i5FO4NmDsfD5Xqip0="; 25 26 ldflags = [ "-buildid=" ]; 27
··· 12 13 buildGoModule rec { 14 pname = "step-ca"; 15 + version = "0.18.1"; 16 17 src = fetchFromGitHub { 18 owner = "smallstep"; 19 repo = "certificates"; 20 rev = "v${version}"; 21 + sha256 = "sha256-oebmJ+xrJTV5gXH3U1lWCSQMHiVnUTa0ZTp39sVB7KM="; 22 }; 23 24 + vendorSha256 = "sha256-IJXJS+Z93Hw1I1CAeRv4mq8as9DKebqNFa0IMgZ+Kic="; 25 26 ldflags = [ "-buildid=" ]; 27
+2 -2
pkgs/tools/system/gdu/default.nix
··· 7 8 buildGoModule rec { 9 pname = "gdu"; 10 - version = "5.13.0"; 11 12 src = fetchFromGitHub { 13 owner = "dundee"; 14 repo = pname; 15 rev = "v${version}"; 16 - sha256 = "sha256-yOYwPr/Yz/PGpCZtv/dWVFgll6VM7wQEtU/jEVpMjlE="; 17 }; 18 19 vendorSha256 = "sha256-9+Zez33oET0nx/Xm3fXh1WFoQduMBodvml1oGO6jUYc=";
··· 7 8 buildGoModule rec { 9 pname = "gdu"; 10 + version = "5.13.1"; 11 12 src = fetchFromGitHub { 13 owner = "dundee"; 14 repo = pname; 15 rev = "v${version}"; 16 + sha256 = "sha256-bUzL9QkSgzJePBnGSYQvsKC975ss5b3kBdIgwgGzEtk="; 17 }; 18 19 vendorSha256 = "sha256-9+Zez33oET0nx/Xm3fXh1WFoQduMBodvml1oGO6jUYc=";
+3 -3
pkgs/tools/wayland/swayr/default.nix
··· 2 3 rustPlatform.buildRustPackage rec { 4 pname = "swayr"; 5 - version = "0.12.1"; 6 7 src = fetchFromSourcehut { 8 owner = "~tsdh"; 9 repo = "swayr"; 10 rev = "v${version}"; 11 - sha256 = "sha256-xcpgebGyYJep4vSdBb0OXhX66DGA7w3B5KYOHj8BKKM="; 12 }; 13 14 - cargoSha256 = "sha256-CYavcHLIQKEh1SoELevAa6g0Q2nksWwcS7/syK4oYq0="; 15 16 patches = [ 17 ./icon-paths.patch
··· 2 3 rustPlatform.buildRustPackage rec { 4 pname = "swayr"; 5 + version = "0.13.0"; 6 7 src = fetchFromSourcehut { 8 owner = "~tsdh"; 9 repo = "swayr"; 10 rev = "v${version}"; 11 + sha256 = "sha256-V4ETsraJo9X10fPMGSuiokPiSlZGYHncOdfheGom1go="; 12 }; 13 14 + cargoSha256 = "sha256-3ErzkS8u+4Ve26jpDbsYr4BVDm/XEgydYdZ2ErtVuVA="; 15 16 patches = [ 17 ./icon-paths.patch
+1 -1
pkgs/top-level/aliases.nix
··· 425 google-musicmanager = throw "google-musicmanager has been removed because Google Play Music was discontinued"; # Added 2021-03-07 426 google-music-scripts = throw "google-music-scripts has been removed because Google Play Music was discontinued"; # Added 2021-03-07 427 go-pup = pup; # Added 2017-12-19 428 429 - gpgstats = throw "gpgstats has been removed: upstream is gone"; # added 2022-02-06 430 graalvm11 = graalvm11-ce; 431 graalvm8-ce = throw "graalvm8-ce has been removed by upstream."; # Added 2021-10-19 432 graalvm8 = throw "graalvm8-ce has been removed by upstream."; # Added 2021-10-19
··· 425 google-musicmanager = throw "google-musicmanager has been removed because Google Play Music was discontinued"; # Added 2021-03-07 426 google-music-scripts = throw "google-music-scripts has been removed because Google Play Music was discontinued"; # Added 2021-03-07 427 go-pup = pup; # Added 2017-12-19 428 + gpgstats = throw "gpgstats has been removed: upstream is gone"; # Added 2022-02-06 429 430 graalvm11 = graalvm11-ce; 431 graalvm8-ce = throw "graalvm8-ce has been removed by upstream."; # Added 2021-10-19 432 graalvm8 = throw "graalvm8-ce has been removed by upstream."; # Added 2021-10-19
+2
pkgs/top-level/all-packages.nix
··· 5592 5593 gaphor = python3Packages.callPackage ../tools/misc/gaphor { }; 5594 5595 garmin-plugin = callPackage ../applications/misc/garmin-plugin {}; 5596 5597 garmintools = callPackage ../development/libraries/garmintools {};
··· 5592 5593 gaphor = python3Packages.callPackage ../tools/misc/gaphor { }; 5594 5595 + garage = callPackage ../tools/filesystems/garage { }; 5596 + 5597 garmin-plugin = callPackage ../applications/misc/garmin-plugin {}; 5598 5599 garmintools = callPackage ../development/libraries/garmintools {};
+6
pkgs/top-level/python-packages.nix
··· 408 409 aiosqlite = callPackage ../development/python-modules/aiosqlite { }; 410 411 aiostream = callPackage ../development/python-modules/aiostream { }; 412 413 aioswitcher = callPackage ../development/python-modules/aioswitcher { }; ··· 2172 2173 discordpy = callPackage ../development/python-modules/discordpy { }; 2174 2175 diskcache = callPackage ../development/python-modules/diskcache { }; 2176 2177 dissononce = callPackage ../development/python-modules/dissononce { }; ··· 2858 fjaraskupan = callPackage ../development/python-modules/fjaraskupan { }; 2859 2860 flake8-blind-except = callPackage ../development/python-modules/flake8-blind-except { }; 2861 2862 flake8 = callPackage ../development/python-modules/flake8 { }; 2863
··· 408 409 aiosqlite = callPackage ../development/python-modules/aiosqlite { }; 410 411 + aiosteamist = callPackage ../development/python-modules/aiosteamist { }; 412 + 413 aiostream = callPackage ../development/python-modules/aiostream { }; 414 415 aioswitcher = callPackage ../development/python-modules/aioswitcher { }; ··· 2174 2175 discordpy = callPackage ../development/python-modules/discordpy { }; 2176 2177 + discovery30303 = callPackage ../development/python-modules/discovery30303 { }; 2178 + 2179 diskcache = callPackage ../development/python-modules/diskcache { }; 2180 2181 dissononce = callPackage ../development/python-modules/dissononce { }; ··· 2862 fjaraskupan = callPackage ../development/python-modules/fjaraskupan { }; 2863 2864 flake8-blind-except = callPackage ../development/python-modules/flake8-blind-except { }; 2865 + 2866 + flake8-bugbear = callPackage ../development/python-modules/flake8-bugbear { }; 2867 2868 flake8 = callPackage ../development/python-modules/flake8 { }; 2869