From d45b39bb89c0f67b9ef9e4d335fc3bd1b2a33f1c Mon Sep 17 00:00:00 2001 From: Audrey Dutcher Date: Sun, 18 Aug 2024 16:32:17 -0700 Subject: [PATCH 01/15] llvmPackages.compiler-rt: Use FreeBSD headers during noLibc build --- .../compilers/llvm/common/compiler-rt/default.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkgs/development/compilers/llvm/common/compiler-rt/default.nix b/pkgs/development/compilers/llvm/common/compiler-rt/default.nix index 8417563cc95f..c549c9eb6f21 100644 --- a/pkgs/development/compilers/llvm/common/compiler-rt/default.nix +++ b/pkgs/development/compilers/llvm/common/compiler-rt/default.nix @@ -14,6 +14,7 @@ , libllvm , libcxx , linuxHeaders +, freebsd , libxcrypt # Some platforms have switched to using compiler-rt, but still want a @@ -67,7 +68,8 @@ stdenv.mkDerivation ({ ++ [ python3 libllvm.dev ] ++ lib.optional stdenv.isDarwin xcbuild.xcrun; buildInputs = - lib.optional (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isRiscV) linuxHeaders; + lib.optional (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isRiscV) linuxHeaders + ++ lib.optional (stdenv.hostPlatform.isFreeBSD) freebsd.include; env.NIX_CFLAGS_COMPILE = toString ([ "-DSCUDO_DEFAULT_OPTIONS=DeleteSizeMismatch=0:DeallocationTypeMismatch=0" @@ -152,12 +154,11 @@ stdenv.mkDerivation ({ '') + '' substituteInPlace lib/builtins/int_util.c \ --replace "#include " "" - '' + (if stdenv.hostPlatform.isFreeBSD then - # As per above, but in FreeBSD assert is a macro and simply allowing it to be implicitly declared causes Issues!!!!! + '' + (lib.optionalString (!stdenv.hostPlatform.isFreeBSD) + # On FreeBSD, assert/static_assert are macros and allowing them to be implicitly declared causes link errors. + # see description above for why we're nuking assert.h normally but that doesn't work here. + # instead, we add the freebsd.include dependency explicitly '' - substituteInPlace lib/builtins/clear_cache.c lib/builtins/cpu_model${lib.optionalString (lib.versionAtLeast version "18") "/x86"}.c \ - --replace "#include " "#define assert(e) ((e)?(void)0:__assert(__FUNCTION__,__FILE__,__LINE__,#e))" - '' else '' substituteInPlace lib/builtins/clear_cache.c \ --replace "#include " "" substituteInPlace lib/builtins/cpu_model${lib.optionalString (lib.versionAtLeast version "18") "/x86"}.c \ From 779b124cdf94f962d80cc73ea9b22a82d0cfac3b Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 14 Sep 2024 12:57:21 +0000 Subject: [PATCH 02/15] aerospike: 7.1.0.5 -> 7.1.0.6 --- pkgs/servers/nosql/aerospike/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/nosql/aerospike/default.nix b/pkgs/servers/nosql/aerospike/default.nix index 4e0f7b3c6b85..668500035222 100644 --- a/pkgs/servers/nosql/aerospike/default.nix +++ b/pkgs/servers/nosql/aerospike/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "aerospike-server"; - version = "7.1.0.5"; + version = "7.1.0.6"; src = fetchFromGitHub { owner = "aerospike"; repo = "aerospike-server"; rev = version; - hash = "sha256-eUB9A9dv71hlrnOQsKcZTfqxXVhz5ErhIOIks2wJois="; + hash = "sha256-10Ky4j4XyskjuuabCvD0mjpLOd9QjChM9TrDvKmgGHQ="; fetchSubmodules = true; }; From 6a3eb966a43346b5b5f21f62a54a0daa165d8401 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Wed, 17 Jul 2024 16:49:26 +0200 Subject: [PATCH 03/15] nrfutil: drop --- .../tools/misc/nrfutil/default.nix | 55 ------------------- pkgs/top-level/all-packages.nix | 2 - 2 files changed, 57 deletions(-) delete mode 100644 pkgs/development/tools/misc/nrfutil/default.nix diff --git a/pkgs/development/tools/misc/nrfutil/default.nix b/pkgs/development/tools/misc/nrfutil/default.nix deleted file mode 100644 index 0249c098de5c..000000000000 --- a/pkgs/development/tools/misc/nrfutil/default.nix +++ /dev/null @@ -1,55 +0,0 @@ -{ - lib, - fetchFromGitHub, - python3, -}: - -python3.pkgs.buildPythonApplication rec { - pname = "nrfutil"; - version = "6.1.7"; - - src = fetchFromGitHub { - owner = "NordicSemiconductor"; - repo = "pc-nrfutil"; - rev = "refs/tags/v${version}"; - sha256 = "sha256-WiXqeQObhXszDcLxJN8ABd2ZkxsOUvtZQSVP8cYlT2M="; - }; - - propagatedBuildInputs = with python3.pkgs; [ - click - crcmod - ecdsa - libusb1 - intelhex - pc-ble-driver-py - piccata - protobuf - pyserial - pyspinel - pyyaml - tqdm - ]; - - nativeCheckInputs = with python3.pkgs; [ - behave - pytestCheckHook - ]; - - # Workaround: pythonRelaxDepsHook doesn't work for this. - postPatch = '' - mkdir test-reports - substituteInPlace requirements.txt \ - --replace "libusb1==1.9.3" "libusb1" \ - --replace "protobuf >=3.17.3, < 4.0.0" "protobuf" - substituteInPlace nordicsemi/dfu/tests/test_signing.py \ - --replace "self.assertEqual(expected_vk_pem, vk_pem)" "" - ''; - - meta = { - description = "Device Firmware Update tool for nRF chips"; - homepage = "https://github.com/NordicSemiconductor/pc-nrfutil"; - license = lib.licenses.unfreeRedistributable; - platforms = lib.platforms.unix; - maintainers = with lib.maintainers; [ gebner ]; - }; -} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9f5a5ece5be8..9b34b485fd56 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18310,8 +18310,6 @@ with pkgs; nrf5-sdk = callPackage ../development/libraries/nrf5-sdk { }; - nrfutil = callPackage ../development/tools/misc/nrfutil { }; - obelisk = callPackage ../development/tools/ocaml/obelisk { menhir = ocamlPackages.menhir; }; obuild = callPackage ../development/tools/ocaml/obuild { }; From 3289ebc9eaf58b6c6ca5a3eea0318b5bcb95d39c Mon Sep 17 00:00:00 2001 From: h7x4 Date: Wed, 17 Jul 2024 16:50:26 +0200 Subject: [PATCH 04/15] nrfutil: reinit at 7.11.1 --- pkgs/by-name/nr/nrfutil/package.nix | 59 +++++++++++++++++++++++++++++ pkgs/by-name/nr/nrfutil/source.nix | 15 ++++++++ pkgs/by-name/nr/nrfutil/update.sh | 38 +++++++++++++++++++ 3 files changed, 112 insertions(+) create mode 100644 pkgs/by-name/nr/nrfutil/package.nix create mode 100644 pkgs/by-name/nr/nrfutil/source.nix create mode 100755 pkgs/by-name/nr/nrfutil/update.sh diff --git a/pkgs/by-name/nr/nrfutil/package.nix b/pkgs/by-name/nr/nrfutil/package.nix new file mode 100644 index 000000000000..9cafd07b5c45 --- /dev/null +++ b/pkgs/by-name/nr/nrfutil/package.nix @@ -0,0 +1,59 @@ +{ + lib, + stdenvNoCC, + fetchurl, + makeWrapper, + libusb1, + segger-jlink-headless, +}: + +let + source = import ./source.nix; + supported = removeAttrs source [ "version" ]; + + platform = supported.${stdenvNoCC.system} or (throw "unsupported platform ${stdenvNoCC.system}"); + +in +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "nrfutil"; + inherit (source) version; + + src = fetchurl { + url = "https://developer.nordicsemi.com/.pc-tools/nrfutil/nrfutil-${platform.name}-${finalAttrs.version}.tar.gz"; + inherit (platform) hash; + }; + + nativeBuildInputs = [ makeWrapper ]; + + dontConfigure = true; + dontBuild = true; + + installPhase = '' + runHook preInstall + + mkdir -p $out + mv data/* $out/ + + wrapProgram $out/bin/nrfutil \ + --prefix LD_LIBRARY_PATH : "${ + lib.makeLibraryPath [ + segger-jlink-headless + libusb1 + ] + }" + + runHook postInstall + ''; + + passthru.updateScript = ./update.sh; + + meta = with lib; { + description = "CLI tool for managing Nordic Semiconductor devices"; + homepage = "https://www.nordicsemi.com/Products/Development-tools/nRF-Util"; + changelog = "https://docs.nordicsemi.com/bundle/nrfutil/page/guides/revision_history.html"; + license = licenses.unfree; + platforms = attrNames supported; + maintainers = with maintainers; [ h7x4 ]; + mainProgram = "nrfutil"; + }; +}) diff --git a/pkgs/by-name/nr/nrfutil/source.nix b/pkgs/by-name/nr/nrfutil/source.nix new file mode 100644 index 000000000000..f768ac96bb88 --- /dev/null +++ b/pkgs/by-name/nr/nrfutil/source.nix @@ -0,0 +1,15 @@ +{ + version = "7.11.1"; + x86_64-linux = { + name = "x86_64-unknown-linux-gnu"; + hash = "sha256-faF/iA07wWiAuxeqEZciIYlnoWe4LKCtDxD0BwIyeYw="; + }; + x86_64-darwin = { + name = "x86_64-apple-darwin"; + hash = "sha256-EImYXMIvxPgzaGuAOWi4O6mG5S1awdGSX0HQgT1iHaI="; + }; + aarch64-darwin = { + name = "aarch64-apple-darwin"; + hash = "sha256-jgigeJRHH/c761wYGMHhtRHE59ms7obZPxiH5pKeoeQ="; + }; +} diff --git a/pkgs/by-name/nr/nrfutil/update.sh b/pkgs/by-name/nr/nrfutil/update.sh new file mode 100755 index 000000000000..bd3bbadbfde5 --- /dev/null +++ b/pkgs/by-name/nr/nrfutil/update.sh @@ -0,0 +1,38 @@ +#!/usr/bin/env nix-shell +#!nix-shell -i bash -p jq nix nix-prefetch-github xq-xml + +nixpkgs="$(git rev-parse --show-toplevel || (printf 'Could not find root of nixpkgs repo\nAre we running from within the nixpkgs git repo?\n' >&2; exit 1))" + +narhash() { + nix --extra-experimental-features nix-command store prefetch-file --json "$1" | jq -r .hash +} + +set -euo pipefail + +declare -A architectures +declare -A versions +declare -A hashes + +architectures["x86_64-linux"]="x86_64-unknown-linux-gnu" +architectures["x86_64-darwin"]="x86_64-apple-darwin" +architectures["aarch64-darwin"]="aarch64-apple-darwin" + +binary_list=$(curl "https://developer.nordicsemi.com/.pc-tools/nrfutil/" | xq -q "#files" | grep -o -E 'nrfutil-(x86_64|aarch64)-.*?.gz' | cut -d' ' -f 1) + +for a in ${!architectures[@]}; do + versions["$a"]=$(echo "$binary_list" | grep "${architectures[${a}]}" | sed -r "s/nrfutil-${architectures[${a}]}-(.*?).tar.gz/\\1/" | tail -n 1) + echo "https://developer.nordicsemi.com/.pc-tools/nrfutil/nrfutil-${architectures[${a}]}-${versions[${a}]}.tar.gz" + hashes["$a"]=$(narhash "https://developer.nordicsemi.com/.pc-tools/nrfutil/nrfutil-${architectures[${a}]}-${versions[${a}]}.tar.gz") +done + +{ + printf "{\n" + printf " version = \"${versions["x86_64-linux"]}\";\n" + for a in ${!architectures[@]}; do + printf " ${a} = {\n" + printf " name = \"${architectures[${a}]}\";\n" + printf " hash = \"${hashes[${a}]}\";\n" + printf " };\n" + done + printf "}\n" +} > "${nixpkgs}/pkgs/by-name/nr/nrfutil/source.nix" From 142e77e7330f218a7c0cf59d97af99ef66a8eab6 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Tue, 17 Sep 2024 22:36:20 +0200 Subject: [PATCH 05/15] nixos/doc: add release note about nrfutil repackaging --- nixos/doc/manual/release-notes/rl-2411.section.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/doc/manual/release-notes/rl-2411.section.md b/nixos/doc/manual/release-notes/rl-2411.section.md index ab951ddb3c25..a756968a125d 100644 --- a/nixos/doc/manual/release-notes/rl-2411.section.md +++ b/nixos/doc/manual/release-notes/rl-2411.section.md @@ -163,6 +163,8 @@ To forcibly reenable cgroup v1 support, you can `set boot.kernelParams = [ "systemd.unified_cgroup_hierachy=0" "SYSTEMD_CGROUP_ENABLE_LEGACY_FORCE=1" ]`. NixOS does not officially support this configuration and might cause your system to be unbootable in future versions. You are on your own. +- `nrfutil` which previously pointed to the now-deprecated `pc-nrfutil` python package, has been repackaged under the same name with the new nrfutil tool. + - `openssh` and `openssh_hpn` are now compiled without Kerberos 5 / GSSAPI support in an effort to reduce the attack surface of the components for the majority of users. Users needing this support can use the new `opensshWithKerberos` and `openssh_hpnWithKerberos` flavors (e.g. `programs.ssh.package = pkgs.openssh_gssapi`). From 78f042114c7b3874bf9daafdf507266b81a5862b Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Wed, 18 Sep 2024 07:02:15 +0100 Subject: [PATCH 06/15] btrfs-progs: 6.10.1 -> 6.11 Changes: https://github.com/kdave/btrfs-progs/releases/tag/v6.11 --- pkgs/tools/filesystems/btrfs-progs/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/filesystems/btrfs-progs/default.nix b/pkgs/tools/filesystems/btrfs-progs/default.nix index 07d34c2af19c..6bbd9cae1f43 100644 --- a/pkgs/tools/filesystems/btrfs-progs/default.nix +++ b/pkgs/tools/filesystems/btrfs-progs/default.nix @@ -10,11 +10,11 @@ stdenv.mkDerivation rec { pname = "btrfs-progs"; - version = "6.10.1"; + version = "6.11"; src = fetchurl { url = "mirror://kernel/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v${version}.tar.xz"; - hash = "sha256-JWhGlrxbXQfJjxnUv3pItTq5SHDKTEaKaK89+eLIo14="; + hash = "sha256-/5rpFSEwOpDYfhxL4jDwEh85xE3b5Swq6uJjxv7PoJk="; }; nativeBuildInputs = [ From f8a752fa37f0d89a93bd527d44e9f3ed3667622a Mon Sep 17 00:00:00 2001 From: John Titor <50095635+JohnRTitor@users.noreply.github.com> Date: Wed, 18 Sep 2024 21:33:15 +0530 Subject: [PATCH 07/15] linuxPackages_latest.nct6687d: 0-unstable-2024-02-23 -> 0-unstable-2024-09-02 --- pkgs/os-specific/linux/nct6687d/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/os-specific/linux/nct6687d/default.nix b/pkgs/os-specific/linux/nct6687d/default.nix index 35e77c7922df..7a3700d4c318 100644 --- a/pkgs/os-specific/linux/nct6687d/default.nix +++ b/pkgs/os-specific/linux/nct6687d/default.nix @@ -7,13 +7,13 @@ stdenv.mkDerivation rec { pname = "nct6687d"; - version = "0-unstable-2024-02-23"; + version = "0-unstable-2024-09-02"; src = fetchFromGitHub { owner = "Fred78290"; repo = "nct6687d"; - rev = "0ee35ed9541bde22fe219305d1647b51ed010c5e"; - hash = "sha256-g81U+ngnsOslBDCQP51uDDyHPpCv9T/j+KmFUAQfz/M="; + rev = "f45b72a6ca335e20f8a2df5ee5d4e130916150d0"; + hash = "sha256-2sAL6aXUafmm2DKIhqEoTSPZVmzu/lnTkpPznJndX3o="; }; setSourceRoot = '' From ccdb30bc27cd2dc222fa00e81af660e6b817162e Mon Sep 17 00:00:00 2001 From: K900 Date: Wed, 18 Sep 2024 21:14:13 +0300 Subject: [PATCH 08/15] linux_6_10: 6.10.10 -> 6.10.11 --- pkgs/os-specific/linux/kernel/kernels-org.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/kernels-org.json b/pkgs/os-specific/linux/kernel/kernels-org.json index ce729e618e43..0edfc58a0084 100644 --- a/pkgs/os-specific/linux/kernel/kernels-org.json +++ b/pkgs/os-specific/linux/kernel/kernels-org.json @@ -36,8 +36,8 @@ "hash": "sha256:08ngskni7d9wi93vlwcmbdg7sb2jl1drhhzn62k9nsrg1r7crrss" }, "6.10": { - "version": "6.10.10", - "hash": "sha256:1kcvh1g3p1sj4q34ylcmm43824f97z4k695lcxnzp7pbnlsyg1z6" + "version": "6.10.11", + "hash": "sha256:15ihkbsj0idwzbvhynjm3kcnkk0alf3xipip8ngib1f1z13a0kgv" }, "6.11": { "version": "6.11", From 9bb5c9ae1b0b1906e3e3764736c221063dcc2165 Mon Sep 17 00:00:00 2001 From: K900 Date: Wed, 18 Sep 2024 21:14:48 +0300 Subject: [PATCH 09/15] linux_6_6: 6.6.51 -> 6.6.52 --- pkgs/os-specific/linux/kernel/kernels-org.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/kernels-org.json b/pkgs/os-specific/linux/kernel/kernels-org.json index 0edfc58a0084..5e91cf70e1ae 100644 --- a/pkgs/os-specific/linux/kernel/kernels-org.json +++ b/pkgs/os-specific/linux/kernel/kernels-org.json @@ -24,8 +24,8 @@ "hash": "sha256:0qj106lj554y1kdqj8kwyf7pk9bvrrpgz6s8zyh7d61mk7wws9sf" }, "6.6": { - "version": "6.6.51", - "hash": "sha256:1cq8l3n12gnk6kgms5c7v71l199ip8lc9fpx7s8w8y88cla9l30w" + "version": "6.6.52", + "hash": "sha256:1f5l6y7abscm01dr740fzvq8r756ar854n0i299smm4rhcsap48m" }, "6.8": { "version": "6.8.12", From a2787576bb8dc31ef608d542d83ec01aca35744b Mon Sep 17 00:00:00 2001 From: K900 Date: Wed, 18 Sep 2024 21:14:57 +0300 Subject: [PATCH 10/15] linux_6_1: 6.1.110 -> 6.1.111 --- pkgs/os-specific/linux/kernel/kernels-org.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/kernels-org.json b/pkgs/os-specific/linux/kernel/kernels-org.json index 5e91cf70e1ae..ba862f9551c7 100644 --- a/pkgs/os-specific/linux/kernel/kernels-org.json +++ b/pkgs/os-specific/linux/kernel/kernels-org.json @@ -4,8 +4,8 @@ "hash": "sha256:17c8vwvra042mib1s60nqqai0s7qc0qkvrf0j7ziqmy2llq8cbxy" }, "6.1": { - "version": "6.1.110", - "hash": "sha256:0slgvwldjdyi5vzhgriamkmrj4p942yacclgcw29331gfjs39gly" + "version": "6.1.111", + "hash": "sha256:1c7d49kppv8xgqlsrfm1286mnvz8vcnbqqh6zgfca2s13px9hwn4" }, "5.15": { "version": "5.15.167", From 6295433b2b0079b063d78761ae52c4f385180cae Mon Sep 17 00:00:00 2001 From: Josh Hoffer Date: Wed, 18 Sep 2024 16:20:26 -0700 Subject: [PATCH 11/15] installer: only use squashfs threads=multi on supported kernels The `threads` SquashFS mount option was introduced in Linux 6.2 [1]. Since we still support older kernels and external users of nixpkgs may reuse the ISO installer modules, this option should be guarded by a kernel version check. [1] https://www.kernelconfig.io/config_squashfs_choice_decomp_by_mount?arch=x86&kernelversion=6.10.10 --- nixos/modules/installer/cd-dvd/iso-image.nix | 2 +- nixos/modules/installer/netboot/netboot.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/installer/cd-dvd/iso-image.nix b/nixos/modules/installer/cd-dvd/iso-image.nix index a0bca949c6a2..541bc5b0189f 100644 --- a/nixos/modules/installer/cd-dvd/iso-image.nix +++ b/nixos/modules/installer/cd-dvd/iso-image.nix @@ -722,7 +722,7 @@ in "/nix/.ro-store" = lib.mkImageMediaOverride { fsType = "squashfs"; device = "/iso/nix-store.squashfs"; - options = [ "loop" "threads=multi" ]; + options = [ "loop" ] ++ lib.optional (config.boot.kernelPackages.kernel.kernelAtLeast "6.2") "threads=multi"; neededForBoot = true; }; diff --git a/nixos/modules/installer/netboot/netboot.nix b/nixos/modules/installer/netboot/netboot.nix index 0e4f456dce49..167c2b521893 100644 --- a/nixos/modules/installer/netboot/netboot.nix +++ b/nixos/modules/installer/netboot/netboot.nix @@ -47,7 +47,7 @@ with lib; fileSystems."/nix/.ro-store" = mkImageMediaOverride { fsType = "squashfs"; device = "../nix-store.squashfs"; - options = [ "loop" "threads=multi" ]; + options = [ "loop" ] ++ lib.optional (config.boot.kernelPackages.kernel.kernelAtLeast "6.2") "threads=multi"; neededForBoot = true; }; From a532aa909067485cb35a0b3eedbe3f2150982b0d Mon Sep 17 00:00:00 2001 From: Brian McGee Date: Thu, 19 Sep 2024 02:33:44 +0200 Subject: [PATCH 12/15] dart: set meta.mainProgram (#342479) --- pkgs/development/compilers/dart/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/compilers/dart/default.nix b/pkgs/development/compilers/dart/default.nix index 0b21122b035e..9a08b3d51732 100644 --- a/pkgs/development/compilers/dart/default.nix +++ b/pkgs/development/compilers/dart/default.nix @@ -64,6 +64,7 @@ stdenv.mkDerivation (finalAttrs: { with C-style syntax. It offers compilation to JavaScript, interfaces, mixins, abstract classes, reified generics, and optional typing. ''; + mainProgram = "dart"; platforms = [ "x86_64-linux" "i686-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; sourceProvenance = with sourceTypes; [ binaryNativeCode ]; license = licenses.bsd3; From 1be8e6c8ae2835320c9ccff74e6f404a710dc382 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Wed, 18 Sep 2024 22:32:01 -0400 Subject: [PATCH 13/15] htgettoken: init at 2.0 (#342364) --- pkgs/by-name/ht/htgettoken/package.nix | 41 ++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pkgs/by-name/ht/htgettoken/package.nix diff --git a/pkgs/by-name/ht/htgettoken/package.nix b/pkgs/by-name/ht/htgettoken/package.nix new file mode 100644 index 000000000000..30d34adeb231 --- /dev/null +++ b/pkgs/by-name/ht/htgettoken/package.nix @@ -0,0 +1,41 @@ +{ + lib, + fetchFromGitHub, + python3, + makeWrapper, +}: + +python3.pkgs.buildPythonApplication rec { + pname = "htgettoken"; + version = "2.0"; + + src = fetchFromGitHub { + owner = "fermitools"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-yHUD8UaRNclALKKToFNzC49w5jivabXBt28xi6/u0Ow="; + }; + + nativeBuildInputs = with python3.pkgs; [ + setuptools + makeWrapper + ]; + + postInstall = with python3.pkgs; '' + wrapProgram $out/bin/htgettoken \ + --set PYTHONPATH "${ + makePythonPath [ + gssapi + paramiko + urllib3 + ] + }" + ''; + + meta = with lib; { + description = "Gets OIDC authentication tokens for High Throughput Computing via a Hashicorp vault server "; + license = licenses.bsd3; + homepage = "https://github.com/fermitools/htgettoken"; + maintainers = with maintainers; [ veprbl ]; + }; +} From 141a5a56c6071549b6e5becb0af98ca1897809a4 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 19 Sep 2024 02:41:40 +0000 Subject: [PATCH 14/15] ryzenadj: 0.15.0 -> 0.16.0 --- pkgs/os-specific/linux/ryzenadj/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/ryzenadj/default.nix b/pkgs/os-specific/linux/ryzenadj/default.nix index 1d61f22b33e5..79b761be9890 100644 --- a/pkgs/os-specific/linux/ryzenadj/default.nix +++ b/pkgs/os-specific/linux/ryzenadj/default.nix @@ -1,13 +1,13 @@ { lib, stdenv, fetchFromGitHub, pciutils, cmake }: stdenv.mkDerivation rec { pname = "ryzenadj"; - version = "0.15.0"; + version = "0.16.0"; src = fetchFromGitHub { owner = "FlyGoat"; repo = "RyzenAdj"; rev = "v${version}"; - sha256 = "sha256-aNkVP1fuPcb41Qk5YI1loJnqVmamSzoMFyTGkJtrnvg="; + sha256 = "sha256-VuIrA5UrRqwUta/mrYd+6F4gh/Z65+zzoTXUlRA8wzA="; }; nativeBuildInputs = [ pciutils cmake ]; From bf95717552dbd05053129069fa31c29a2d3c802c Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 19 Sep 2024 03:37:42 +0000 Subject: [PATCH 15/15] xlights: 2024.15 -> 2024.16 --- pkgs/by-name/xl/xlights/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/xl/xlights/package.nix b/pkgs/by-name/xl/xlights/package.nix index f034460dc0b1..ed0f3b0f30d3 100644 --- a/pkgs/by-name/xl/xlights/package.nix +++ b/pkgs/by-name/xl/xlights/package.nix @@ -2,11 +2,11 @@ appimageTools.wrapType2 rec { pname = "xlights"; - version = "2024.15"; + version = "2024.16"; src = fetchurl { url = "https://github.com/smeighan/xLights/releases/download/${version}/xLights-${version}-x86_64.AppImage"; - hash = "sha256-/KUcBr5Z8xITeEL3g/5UFQ483lUY/fvf8VtlnSOcqu0="; + hash = "sha256-r9NtNuPmc8J1y3MxA4oSdRmPKDQeDQENdKbNVlcGwAI="; }; meta = {