Merge staging-next into staging

authored by

github-actions[bot] and committed by
GitHub
f60ea3cf d56a97cc

+803 -926
+13
maintainers/team-list.nix
··· 312 enableFeatureFreezePing = true; 313 }; 314 315 haskell = { 316 members = [ 317 cdepillabout
··· 312 enableFeatureFreezePing = true; 313 }; 314 315 + graalvm-ce = { 316 + members = [ 317 + bandresen 318 + hlolli 319 + glittershark 320 + babariviere 321 + ericdallo 322 + thiagokokada 323 + ]; 324 + scope = "Maintain GraalVM Community Edition packages."; 325 + shortName = "GraalVM-CE"; 326 + }; 327 + 328 haskell = { 329 members = [ 330 cdepillabout
+2
nixos/doc/manual/release-notes/rl-2305.section.md
··· 99 100 - Calling `makeSetupHook` without passing a `name` argument is deprecated. 101 102 - Qt 5.12 and 5.14 have been removed, as the corresponding branches have been EOL upstream for a long time. This affected under 10 packages in nixpkgs, largely unmaintained upstream as well, however, out-of-tree package expressions may need to be updated manually. 103 104 - The [services.wordpress.sites.<name>.plugins](#opt-services.wordpress.sites._name_.plugins) and [services.wordpress.sites.<name>.themes](#opt-services.wordpress.sites._name_.themes) options have been converted from sets to attribute sets to allow for consumers to specify explicit install paths via attribute name.
··· 99 100 - Calling `makeSetupHook` without passing a `name` argument is deprecated. 101 102 + - The `cosmoc` package has been removed. The upstream scripts in `cosmocc` should be used instead. 103 + 104 - Qt 5.12 and 5.14 have been removed, as the corresponding branches have been EOL upstream for a long time. This affected under 10 packages in nixpkgs, largely unmaintained upstream as well, however, out-of-tree package expressions may need to be updated manually. 105 106 - The [services.wordpress.sites.<name>.plugins](#opt-services.wordpress.sites._name_.plugins) and [services.wordpress.sites.<name>.themes](#opt-services.wordpress.sites._name_.themes) options have been converted from sets to attribute sets to allow for consumers to specify explicit install paths via attribute name.
+3 -6
pkgs/applications/audio/helvum/default.nix
··· 16 17 stdenv.mkDerivation rec { 18 pname = "helvum"; 19 - version = "0.3.4"; 20 21 src = fetchFromGitLab { 22 domain = "gitlab.freedesktop.org"; 23 owner = "pipewire"; 24 repo = pname; 25 rev = version; 26 - sha256 = "0nhv6zw2zzxz2bg2zj32w1brywnm5lv6j3cvmmvwshc389z2k5x1"; 27 }; 28 29 cargoDeps = rustPlatform.fetchCargoTarball { 30 inherit src; 31 name = "${pname}-${version}"; 32 - hash = "sha256-EIHO9qVPIXgezfFOaarlTU0an762nFmX1ELbQuAZ7rY"; 33 }; 34 35 nativeBuildInputs = [ ··· 49 gtk4 50 pipewire 51 ]; 52 - 53 - # FIXME: workaround for Pipewire 0.3.64 deprecated API change, remove when fixed upstream 54 - NIX_CFLAGS_COMPILE = [ "-DPW_ENABLE_DEPRECATED" ]; 55 56 meta = with lib; { 57 description = "A GTK patchbay for pipewire";
··· 16 17 stdenv.mkDerivation rec { 18 pname = "helvum"; 19 + version = "0.4.0"; 20 21 src = fetchFromGitLab { 22 domain = "gitlab.freedesktop.org"; 23 owner = "pipewire"; 24 repo = pname; 25 rev = version; 26 + hash = "sha256-TvjO7fGobGmAltVHeXWyMtMLANdVWVGvBYq20JD3mMI="; 27 }; 28 29 cargoDeps = rustPlatform.fetchCargoTarball { 30 inherit src; 31 name = "${pname}-${version}"; 32 + hash = "sha256-W5Imlut30cjV4A6TCjBFLbViB0CDUucNsvIUiCXqu7I="; 33 }; 34 35 nativeBuildInputs = [ ··· 49 gtk4 50 pipewire 51 ]; 52 53 meta = with lib; { 54 description = "A GTK patchbay for pipewire";
+7 -6
pkgs/applications/blockchains/torq/default.nix
··· 6 7 let 8 pname = "torq"; 9 - version = "0.17.3"; 10 11 src = fetchFromGitHub { 12 owner = "lncapital"; 13 repo = pname; 14 rev = "v${version}"; 15 - hash = "sha256-fqHJZi1NQCrZqsa+N+FVYZ8s9o0D555Sqn5qNlJ1MmI="; 16 }; 17 18 web = buildNpmPackage { 19 pname = "${pname}-frontend"; 20 inherit version; 21 src = "${src}/web"; 22 - npmDepsHash = "sha256-8mUfTFzPjQlQvhC3zZf+WruDBkYnmGt3yckNi0CPWs0="; 23 24 # copied from upstream Dockerfile 25 npmInstallFlags = [ "--legacy-peer-deps" ]; ··· 29 # override npmInstallHook, we only care about the build/ directory 30 installPhase = '' 31 mkdir $out 32 - cp -r build $out/ 33 ''; 34 }; 35 in 36 buildGoModule rec { 37 inherit pname version src; 38 39 - vendorHash = "sha256-HETN2IMnpxnTyg6bQDpoD0saJu+gKocdEf0VzEi12Gs="; 40 41 subPackages = [ "cmd/torq" ]; 42 ··· 47 ]; 48 49 postInstall = '' 50 - ln -s ${web} $out/web 51 ''; 52 53 meta = with lib; {
··· 6 7 let 8 pname = "torq"; 9 + version = "0.18.17"; 10 11 src = fetchFromGitHub { 12 owner = "lncapital"; 13 repo = pname; 14 rev = "v${version}"; 15 + hash = "sha256-xiA66yGo8b1+zZ7jQ7SFOtNPmqbdna7fUCT21uibrIM="; 16 }; 17 18 web = buildNpmPackage { 19 pname = "${pname}-frontend"; 20 inherit version; 21 src = "${src}/web"; 22 + npmDepsHash = "sha256-/7x5RWYIB5BChYMnMuFVVaZd0pVkew4i4QrF7hSFnCM="; 23 24 # copied from upstream Dockerfile 25 npmInstallFlags = [ "--legacy-peer-deps" ]; ··· 29 # override npmInstallHook, we only care about the build/ directory 30 installPhase = '' 31 mkdir $out 32 + cp -r build/* $out/ 33 ''; 34 }; 35 in 36 buildGoModule rec { 37 inherit pname version src; 38 39 + vendorHash = "sha256-bvisI589Gq9IdyJEqI+uzs3iDPOTUkq95P3n/KoFhF0="; 40 41 subPackages = [ "cmd/torq" ]; 42 ··· 47 ]; 48 49 postInstall = '' 50 + mkdir -p $out/web/build 51 + cp -r ${web}/* $out/web/build/ 52 ''; 53 54 meta = with lib; {
+3 -3
pkgs/applications/misc/darkman/default.nix
··· 2 3 buildGoModule rec { 4 pname = "darkman"; 5 - version = "1.4.0"; 6 7 src = fetchFromGitLab { 8 owner = "WhyNotHugo"; 9 repo = "darkman"; 10 rev = "v${version}"; 11 - sha256 = "sha256-Q/pjQmlyREl32C0LiwypEz1qBw2AeBOZbUIwNP392Sc="; 12 }; 13 14 - vendorSha256 = "09rjqw6v1jaf0mhmycw9mcay9q0y1fya2azj8216gdgkl48ics08"; 15 16 nativeBuildInputs = [ scdoc ]; 17
··· 2 3 buildGoModule rec { 4 pname = "darkman"; 5 + version = "1.5.4"; 6 7 src = fetchFromGitLab { 8 owner = "WhyNotHugo"; 9 repo = "darkman"; 10 rev = "v${version}"; 11 + sha256 = "sha256-6SNXVe6EfVwcXH9O6BxNw+v4/uhKhCtVS3XE2GTc2Sc="; 12 }; 13 14 + vendorSha256 = "sha256-xEPmNnaDwFU4l2G4cMvtNeQ9KneF5g9ViQSFrDkrafY="; 15 16 nativeBuildInputs = [ scdoc ]; 17
+4 -2
pkgs/applications/misc/regextester/default.nix
··· 11 , ninja 12 , gobject-introspection 13 , gsettings-desktop-schemas 14 , pantheon 15 , wrapGAppsHook }: 16 17 stdenv.mkDerivation rec { 18 pname = "regextester"; 19 - version = "1.0.1"; 20 21 src = fetchFromGitHub { 22 owner = "artemanufrij"; 23 repo = "regextester"; 24 rev = version; 25 - sha256 = "1xwwv1hccni1mrbl58f7ly4qfq6738vn24bcbl2q346633cd7kx3"; 26 }; 27 28 nativeBuildInputs = [ ··· 34 ninja 35 pkg-config 36 wrapGAppsHook 37 ]; 38 39 buildInputs = [
··· 11 , ninja 12 , gobject-introspection 13 , gsettings-desktop-schemas 14 + , desktop-file-utils 15 , pantheon 16 , wrapGAppsHook }: 17 18 stdenv.mkDerivation rec { 19 pname = "regextester"; 20 + version = "1.1.1"; 21 22 src = fetchFromGitHub { 23 owner = "artemanufrij"; 24 repo = "regextester"; 25 rev = version; 26 + hash = "sha256-5+gU8DeB99w2h/4vMal2eHkR0305dmRYiY6fsLZzlnc="; 27 }; 28 29 nativeBuildInputs = [ ··· 35 ninja 36 pkg-config 37 wrapGAppsHook 38 + desktop-file-utils 39 ]; 40 41 buildInputs = [
+2 -10
pkgs/applications/science/physics/nnpdf/default.nix
··· 1 { lib 2 , stdenv 3 , fetchFromGitHub 4 - , fetchpatch 5 , cmake 6 , pkg-config 7 , apfel ··· 16 17 stdenv.mkDerivation rec { 18 pname = "nnpdf"; 19 - version = "4.0.4"; 20 21 src = fetchFromGitHub { 22 owner = "NNPDF"; 23 repo = pname; 24 rev = version; 25 - sha256 = "sha256-Alx4W0TkPzJBsnRXcKBrlEU6jWTnOjrji/IPk+dNCw0="; 26 }; 27 - 28 - patches = [ 29 - (fetchpatch { 30 - url = "https://github.com/NNPDF/nnpdf/commit/7943b62a91d3a41fd4f6366b18881d50695f4b45.diff"; 31 - hash = "sha256-UXhTO7vZgJiY8h3bgjg7SQC0gMUQsYQ/V/PgtCEQ7VU="; 32 - }) 33 - ]; 34 35 postPatch = '' 36 for file in CMakeLists.txt buildmaster/CMakeLists.txt; do
··· 1 { lib 2 , stdenv 3 , fetchFromGitHub 4 , cmake 5 , pkg-config 6 , apfel ··· 15 16 stdenv.mkDerivation rec { 17 pname = "nnpdf"; 18 + version = "4.0.6"; 19 20 src = fetchFromGitHub { 21 owner = "NNPDF"; 22 repo = pname; 23 rev = version; 24 + hash = "sha256-mwOMNlYFhHZq/wakO1/HGwcxvKGKh5OyFa2D9d3Y3IA="; 25 }; 26 27 postPatch = '' 28 for file in CMakeLists.txt buildmaster/CMakeLists.txt; do
+24 -3
pkgs/applications/version-management/git-trim/default.nix
··· 1 - { lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, libiconv, Security }: 2 3 rustPlatform.buildRustPackage rec { 4 pname = "git-trim"; ··· 11 sha256 = "sha256-XAO3Qg5I2lYZVNx4+Z5jKHRIFdNwBJsUQwJXFb4CbvM="; 12 }; 13 14 - cargoHash = "sha256-KCLMb8NXxjscrmKXkP/RbV+LsJqOG7zaClJGFiQ4o9k="; 15 16 nativeBuildInputs = [ pkg-config ]; 17 18 - buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ libiconv Security ]; 19 20 postInstall = '' 21 install -Dm644 -t $out/share/man/man1/ docs/git-trim.1
··· 1 + { lib 2 + , stdenv 3 + , rustPlatform 4 + , fetchFromGitHub 5 + , pkg-config 6 + , openssl 7 + , libgit2 8 + , IOKit 9 + , CoreFoundation 10 + , fetchpatch 11 + }: 12 13 rustPlatform.buildRustPackage rec { 14 pname = "git-trim"; ··· 21 sha256 = "sha256-XAO3Qg5I2lYZVNx4+Z5jKHRIFdNwBJsUQwJXFb4CbvM="; 22 }; 23 24 + cargoHash = "sha256-mS8kNkZs8jX99ryG4XkU+U/iWIIcmET2vOfG1YNNZFU="; 25 + 26 + cargoPatches = [ 27 + # Update git2 https://github.com/foriequal0/git-trim/pull/202 28 + (fetchpatch { 29 + url = "https://github.com/foriequal0/git-trim/commit/4355cd1d6f605455087c4d7ad16bfb92ffee941f.patch"; 30 + sha256 = "sha256-C1pX4oe9ZCgvqYTBJeSjMdr0KFyjv2PNVMJDlwCAngY="; 31 + }) 32 + ]; 33 + 34 + OPENSSL_NO_VENDOR = 1; 35 36 nativeBuildInputs = [ pkg-config ]; 37 38 + buildInputs = [ openssl libgit2 ] 39 + ++ lib.optionals stdenv.isDarwin [ IOKit CoreFoundation ]; 40 41 postInstall = '' 42 install -Dm644 -t $out/share/man/man1/ docs/git-trim.1
+2 -2
pkgs/applications/video/haruna/default.nix
··· 26 27 mkDerivation rec { 28 pname = "haruna"; 29 - version = "0.10.2"; 30 31 src = fetchFromGitLab { 32 owner = "multimedia"; 33 repo = "haruna"; 34 rev = "v${version}"; 35 - hash = "sha256-hhHWxmr2EzW9QqfV1bpJCiWOWsmGJmvxvtQcuXlMTc4="; 36 domain = "invent.kde.org"; 37 }; 38
··· 26 27 mkDerivation rec { 28 pname = "haruna"; 29 + version = "0.10.3"; 30 31 src = fetchFromGitLab { 32 owner = "multimedia"; 33 repo = "haruna"; 34 rev = "v${version}"; 35 + hash = "sha256-kXafPUcWWvadGbcN4PAtXlFmfll/mSpwu2Sbh6Gxx4w="; 36 domain = "invent.kde.org"; 37 }; 38
+8 -3
pkgs/applications/virtualization/qemu/default.nix
··· 1 - { lib, stdenv, fetchurl, fetchpatch, python3, zlib, pkg-config, glib, buildPackages 2 , perl, pixman, vde2, alsa-lib, texinfo, flex 3 , bison, lzo, snappy, libaio, libtasn1, gnutls, nettle, curl, ninja, meson, sigtool 4 , makeWrapper, runtimeShell, removeReferencesTo ··· 51 52 depsBuildBuild = [ buildPackages.stdenv.cc ]; 53 54 - nativeBuildInputs = [ makeWrapper removeReferencesTo pkg-config flex bison meson ninja perl python3 python3.pkgs.sphinx python3.pkgs.sphinx-rtd-theme ] 55 ++ lib.optionals gtkSupport [ wrapGAppsHook ] 56 ++ lib.optionals stdenv.isDarwin [ sigtool ]; 57 ··· 143 # have our patches and will be subtly broken because of that. 144 "--meson=meson" 145 "--cross-prefix=${stdenv.cc.targetPrefix}" 146 - "--cpu=${stdenv.hostPlatform.uname.processor}" 147 (lib.enableFeature guestAgentSupport "guest-agent") 148 ] ++ lib.optional numaSupport "--enable-numa" 149 ++ lib.optional seccompSupport "--enable-seccomp"
··· 1 + { lib, stdenv, fetchurl, fetchpatch, python3Packages, zlib, pkg-config, glib, buildPackages 2 , perl, pixman, vde2, alsa-lib, texinfo, flex 3 , bison, lzo, snappy, libaio, libtasn1, gnutls, nettle, curl, ninja, meson, sigtool 4 , makeWrapper, runtimeShell, removeReferencesTo ··· 51 52 depsBuildBuild = [ buildPackages.stdenv.cc ]; 53 54 + nativeBuildInputs = [ 55 + makeWrapper removeReferencesTo 56 + pkg-config flex bison meson ninja perl 57 + 58 + # Don't change this to python3 and python3.pkgs.*, breaks cross-compilation 59 + python3Packages.python python3Packages.sphinx python3Packages.sphinx-rtd-theme 60 + ] 61 ++ lib.optionals gtkSupport [ wrapGAppsHook ] 62 ++ lib.optionals stdenv.isDarwin [ sigtool ]; 63 ··· 149 # have our patches and will be subtly broken because of that. 150 "--meson=meson" 151 "--cross-prefix=${stdenv.cc.targetPrefix}" 152 (lib.enableFeature guestAgentSupport "guest-agent") 153 ] ++ lib.optional numaSupport "--enable-numa" 154 ++ lib.optional seccompSupport "--enable-seccomp"
+5 -3
pkgs/build-support/build-graalvm-native-image/default.nix
··· 1 - { lib, stdenv, graalvm, glibcLocales }: 2 3 { name ? "${args.pname}-${args.version}" 4 # Final executable name ··· 19 # XMX size of GraalVM during build 20 , graalvmXmx ? "-J-Xmx6g" 21 # The GraalVM derivation to use 22 - , graalvmDrv ? graalvm 23 # Locale to be used by GraalVM compiler 24 , LC_ALL ? "en_US.UTF-8" 25 , meta ? { } ··· 51 52 disallowedReferences = [ graalvmDrv ]; 53 54 meta = { 55 # default to graalvm's platforms 56 platforms = graalvmDrv.meta.platforms; 57 # default to executable name 58 mainProgram = executable; 59 # need to have native-image-installable-svm available 60 - broken = !(builtins.elem "native-image-installable-svm" graalvmDrv.products); 61 } // meta; 62 })
··· 1 + { lib, stdenv, graalvm-ce, glibcLocales }: 2 3 { name ? "${args.pname}-${args.version}" 4 # Final executable name ··· 19 # XMX size of GraalVM during build 20 , graalvmXmx ? "-J-Xmx6g" 21 # The GraalVM derivation to use 22 + , graalvmDrv ? graalvm-ce 23 # Locale to be used by GraalVM compiler 24 , LC_ALL ? "en_US.UTF-8" 25 , meta ? { } ··· 51 52 disallowedReferences = [ graalvmDrv ]; 53 54 + passthru = { inherit graalvmDrv; }; 55 + 56 meta = { 57 # default to graalvm's platforms 58 platforms = graalvmDrv.meta.platforms; 59 # default to executable name 60 mainProgram = executable; 61 # need to have native-image-installable-svm available 62 + broken = !(builtins.any (p: (p.product or "") == "native-image-installable-svm") graalvmDrv.products); 63 } // meta; 64 })
+4 -1
pkgs/development/compilers/gcc/11/default.nix
··· 82 ++ optional (stdenv.isDarwin && targetPlatform.isAvr) ./avr-gcc-11.3-darwin.patch 83 84 # Obtain latest patch with ../update-mcfgthread-patches.sh 85 - ++ optional (!crossStageStatic && targetPlatform.isMinGW && threadsCross.model == "mcf") ./Added-mcf-thread-model-support-from-mcfgthread.patch; 86 87 /* Cross-gcc settings (build == host != target) */ 88 crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt";
··· 82 ++ optional (stdenv.isDarwin && targetPlatform.isAvr) ./avr-gcc-11.3-darwin.patch 83 84 # Obtain latest patch with ../update-mcfgthread-patches.sh 85 + ++ optional (!crossStageStatic && targetPlatform.isMinGW && threadsCross.model == "mcf") ./Added-mcf-thread-model-support-from-mcfgthread.patch 86 + 87 + # openjdk build fails without this on -march=opteron; is upstream in gcc12 88 + ++ [ ./gcc-issue-103910.patch ]; 89 90 /* Cross-gcc settings (build == host != target) */ 91 crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt";
+41
pkgs/development/compilers/gcc/11/gcc-issue-103910.patch
···
··· 1 + From d243f4009d8071b734df16cd70f4c5d09a373769 Mon Sep 17 00:00:00 2001 2 + From: Andrew Pinski <apinski@marvell.com> 3 + Date: Wed, 5 Jan 2022 22:00:07 +0000 4 + Subject: [PATCH] Fix target/103910: missing GTY on x86_mfence causing PCH 5 + usage to ICE 6 + 7 + With -O3 -march=opteron, a mfence builtin is added after the loop 8 + to say the nontemporal stores are no longer needed. This all good 9 + without precompiled headers as the function decl that is referneced 10 + by x86_mfence is referenced in another variable but with precompiled 11 + headers, x86_mfence is all messed up and the decl was GC'ed away. 12 + This fixes the problem by marking x86_mfence as GTY to save/restore 13 + during precompiled headers just like most other variables in 14 + the header file. 15 + 16 + Committed as obvious after a bootstrap/test on x86_64-linux-gnu. 17 + 18 + gcc/ChangeLog: 19 + 20 + PR target/103910 21 + * config/i386/i386.h (x86_mfence): Mark with GTY. 22 + --- 23 + gcc/config/i386/i386.h | 2 +- 24 + 1 file changed, 1 insertion(+), 1 deletion(-) 25 + 26 + diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h 27 + index f027608eefa..3ac0f698ae2 100644 28 + --- a/gcc/config/i386/i386.h 29 + +++ b/gcc/config/i386/i386.h 30 + @@ -486,7 +486,7 @@ extern unsigned char ix86_prefetch_sse; 31 + 32 + /* Fence to use after loop using storent. */ 33 + 34 + -extern tree x86_mfence; 35 + +extern GTY(()) tree x86_mfence; 36 + #define FENCE_FOLLOWING_MOVNT x86_mfence 37 + 38 + /* Once GDB has been enhanced to deal with functions without frame 39 + -- 40 + 2.31.1 41 +
+148
pkgs/development/compilers/graalvm/community-edition/buildGraalvm.nix
···
··· 1 + { lib 2 + , stdenv 3 + , alsa-lib 4 + , autoPatchelfHook 5 + , cairo 6 + , cups 7 + , fontconfig 8 + , Foundation 9 + , glib 10 + , gtk3 11 + , gtkSupport ? stdenv.isLinux 12 + , makeWrapper 13 + , setJavaClassPath 14 + , unzip 15 + , xorg 16 + , zlib 17 + }: 18 + { javaVersion 19 + , meta ? { } 20 + , products ? [ ] 21 + , ... } @ args: 22 + 23 + let 24 + runtimeLibraryPath = lib.makeLibraryPath 25 + ([ cups ] ++ lib.optionals gtkSupport [ cairo glib gtk3 ]); 26 + mapProducts = key: default: (map (p: p.${key} or default) products); 27 + concatProducts = key: lib.concatStringsSep "\n" (mapProducts key ""); 28 + 29 + graalvmXXX-ce = stdenv.mkDerivation (args // { 30 + pname = "graalvm${javaVersion}-ce"; 31 + 32 + unpackPhase = '' 33 + runHook preUnpack 34 + 35 + mkdir -p "$out" 36 + 37 + # The tarball on Linux has the following directory structure: 38 + # 39 + # graalvm-ce-java11-20.3.0/* 40 + # 41 + # while on Darwin it looks like this: 42 + # 43 + # graalvm-ce-java11-20.3.0/Contents/Home/* 44 + # 45 + # We therefor use --strip-components=1 vs 3 depending on the platform. 46 + tar xf "$src" -C "$out" --strip-components=${ 47 + if stdenv.isLinux then "1" else "3" 48 + } 49 + 50 + # Sanity check 51 + if [ ! -d "$out/bin" ]; then 52 + echo "The `bin` is directory missing after extracting the graalvm" 53 + echo "tarball, please compare the directory structure of the" 54 + echo "tarball with what happens in the unpackPhase (in particular" 55 + echo "with regards to the `--strip-components` flag)." 56 + exit 1 57 + fi 58 + 59 + runHook postUnpack 60 + ''; 61 + 62 + postUnpack = '' 63 + for product in ${toString products}; do 64 + cp -Rv $product/* $out 65 + done 66 + ''; 67 + 68 + dontStrip = true; 69 + 70 + nativeBuildInputs = [ unzip makeWrapper ] 71 + ++ lib.optional stdenv.isLinux autoPatchelfHook; 72 + 73 + propagatedBuildInputs = [ setJavaClassPath zlib ] 74 + ++ lib.optional stdenv.isDarwin Foundation; 75 + 76 + buildInputs = lib.optionals stdenv.isLinux [ 77 + alsa-lib # libasound.so wanted by lib/libjsound.so 78 + fontconfig 79 + stdenv.cc.cc.lib # libstdc++.so.6 80 + xorg.libX11 81 + xorg.libXext 82 + xorg.libXi 83 + xorg.libXrender 84 + xorg.libXtst 85 + ]; 86 + 87 + preInstall = concatProducts "preInstall"; 88 + postInstall = '' 89 + # jni.h expects jni_md.h to be in the header search path. 90 + ln -sf $out/include/linux/*_md.h $out/include/ 91 + 92 + # copy-paste openjdk's preFixup 93 + # Set JAVA_HOME automatically. 94 + mkdir -p $out/nix-support 95 + cat > $out/nix-support/setup-hook << EOF 96 + if [ -z "\''${JAVA_HOME-}" ]; then export JAVA_HOME=$out; fi 97 + EOF 98 + '' + concatProducts "postInstall"; 99 + 100 + preFixup = lib.optionalString (stdenv.isLinux) '' 101 + # Find all executables in any directory that contains '/bin/' 102 + for bin in $(find "$out" -executable -type f -wholename '*/bin/*'); do 103 + wrapProgram "$bin" --prefix LD_LIBRARY_PATH : "${runtimeLibraryPath}" 104 + done 105 + '' + concatProducts "preFixup"; 106 + postFixup = concatProducts "postFixup"; 107 + 108 + doInstallCheck = true; 109 + installCheckPhase = '' 110 + runHook preInstallCheck 111 + 112 + echo ${ 113 + lib.escapeShellArg '' 114 + public class HelloWorld { 115 + public static void main(String[] args) { 116 + System.out.println("Hello World"); 117 + } 118 + } 119 + '' 120 + } > HelloWorld.java 121 + $out/bin/javac HelloWorld.java 122 + 123 + # run on JVM with Graal Compiler 124 + echo "Testing GraalVM" 125 + $out/bin/java -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+UseJVMCICompiler HelloWorld | fgrep 'Hello World' 126 + 127 + ${concatProducts "installCheckPhase"} 128 + 129 + runHook postInstallCheck 130 + ''; 131 + 132 + passthru = { 133 + inherit products; 134 + home = graalvmXXX-ce; 135 + updateScript = ./update.sh; 136 + }; 137 + 138 + meta = with lib; ({ 139 + inherit platforms; 140 + homepage = "https://www.graalvm.org/"; 141 + description = "High-Performance Polyglot VM"; 142 + license = with licenses; [ upl gpl2Classpath bsd3 ]; 143 + sourceProvenance = with sourceTypes; [ binaryNativeCode ]; 144 + mainProgram = "java"; 145 + maintainers = with maintainers; teams.graalvm-ce.members ++ [ ]; 146 + } // meta); 147 + }); 148 + in graalvmXXX-ce
+73
pkgs/development/compilers/graalvm/community-edition/buildGraalvmProduct.nix
···
··· 1 + { lib 2 + , stdenv 3 + , autoPatchelfHook 4 + , makeWrapper 5 + , perl 6 + , unzip 7 + , zlib 8 + }: 9 + { product 10 + , javaVersion 11 + , extraNativeBuildInputs ? [ ] 12 + , extraBuildInputs ? [ ] 13 + , meta ? { } 14 + , passthru ? { } 15 + , ... } @ args: 16 + 17 + stdenv.mkDerivation (args // { 18 + pname = "${product}-java${javaVersion}"; 19 + 20 + nativeBuildInputs = [ perl unzip makeWrapper ] 21 + ++ lib.optional stdenv.isLinux autoPatchelfHook 22 + ++ extraNativeBuildInputs; 23 + 24 + buildInputs = [ 25 + stdenv.cc.cc.lib # libstdc++.so.6 26 + zlib 27 + ] ++ extraBuildInputs; 28 + 29 + unpackPhase = '' 30 + runHook preUnpack 31 + 32 + unpack_jar() { 33 + local jar="$1" 34 + unzip -q -o "$jar" -d "$out" 35 + perl -ne 'use File::Path qw(make_path); 36 + use File::Basename qw(dirname); 37 + if (/^(.+) = (.+)$/) { 38 + make_path dirname("$ENV{out}/$1"); 39 + symlink $2, "$ENV{out}/$1"; 40 + }' "$out/META-INF/symlinks" 41 + perl -ne 'if (/^(.+) = ([r-])([w-])([x-])([r-])([w-])([x-])([r-])([w-])([x-])$/) { 42 + my $mode = ($2 eq 'r' ? 0400 : 0) + ($3 eq 'w' ? 0200 : 0) + ($4 eq 'x' ? 0100 : 0) + 43 + ($5 eq 'r' ? 0040 : 0) + ($6 eq 'w' ? 0020 : 0) + ($7 eq 'x' ? 0010 : 0) + 44 + ($8 eq 'r' ? 0004 : 0) + ($9 eq 'w' ? 0002 : 0) + ($10 eq 'x' ? 0001 : 0); 45 + chmod $mode, "$ENV{out}/$1"; 46 + }' "$out/META-INF/permissions" 47 + rm -rf "$out/META-INF" 48 + } 49 + 50 + unpack_jar "$src" 51 + 52 + runHook postUnpack 53 + ''; 54 + 55 + dontInstall = true; 56 + dontBuild = true; 57 + dontStrip = true; 58 + # installCheckPhase is going to run in GraalVM main derivation (see buildGraalvm.nix) 59 + # to make sure that it has everything it needs to run correctly. 60 + # Other hooks like fixupPhase/installPhase are also going to run there for the 61 + # same reason. 62 + doInstallCheck = false; 63 + 64 + passthru = { inherit product; } // passthru; 65 + 66 + meta = with lib; ({ 67 + homepage = "https://www.graalvm.org/"; 68 + description = "High-Performance Polyglot VM (Product: ${product})"; 69 + license = with licenses; [ upl gpl2Classpath bsd3 ]; 70 + sourceProvenance = with sourceTypes; [ binaryNativeCode ]; 71 + maintainers = with maintainers; teams.graalvm-ce.members ++ [ ]; 72 + } // meta); 73 + })
+40 -63
pkgs/development/compilers/graalvm/community-edition/default.nix
··· 1 - { callPackage, Foundation }: 2 - /* 3 - Add new graal versions and products here and then see update.nix on how to 4 - generate the sources. 5 - */ 6 7 let 8 - mkGraal = opts: callPackage (import ./mkGraal.nix opts) { 9 - inherit Foundation; 10 }; 11 12 - /* 13 - Looks a bit ugly but makes version update in the update script using sed 14 - much easier 15 16 - Don't change these values! They will be updated by the update script, see ./update.nix. 17 - */ 18 - graalvm11-ce-release-version = "22.3.0"; 19 - graalvm17-ce-release-version = "22.3.0"; 20 21 - products = [ 22 - "graalvm-ce" 23 - "native-image-installable-svm" 24 - ]; 25 26 - in 27 - { 28 - inherit mkGraal; 29 - 30 - graalvm11-ce = mkGraal rec { 31 - config = { 32 - x86_64-darwin = { 33 - inherit products; 34 - arch = "darwin-amd64"; 35 - }; 36 - x86_64-linux = { 37 - inherit products; 38 - arch = "linux-amd64"; 39 - }; 40 - aarch64-darwin = { 41 - inherit products; 42 - arch = "darwin-aarch64"; 43 - }; 44 - aarch64-linux = { 45 - inherit products; 46 - arch = "linux-aarch64"; 47 - }; 48 - }; 49 - defaultVersion = graalvm11-ce-release-version; 50 - javaVersion = "11"; 51 }; 52 53 - graalvm17-ce = mkGraal rec { 54 - config = { 55 - x86_64-darwin = { 56 - inherit products; 57 - arch = "darwin-amd64"; 58 - }; 59 - x86_64-linux = { 60 - inherit products; 61 - arch = "linux-amd64"; 62 - }; 63 - aarch64-darwin = { 64 - inherit products; 65 - arch = "darwin-aarch64"; 66 - }; 67 - aarch64-linux = { 68 - inherit products; 69 - arch = "linux-aarch64"; 70 - }; 71 - }; 72 - defaultVersion = graalvm17-ce-release-version; 73 javaVersion = "17"; 74 }; 75 }
··· 1 + { lib 2 + , stdenv 3 + , callPackage 4 + , fetchurl 5 + , Foundation 6 + }: 7 8 let 9 + buildGraalvm = callPackage ./buildGraalvm.nix { inherit Foundation; }; 10 + buildGraalvmProduct = callPackage ./buildGraalvmProduct.nix { }; 11 + javaPlatform = { 12 + "aarch64-linux" = "linux-aarch64"; 13 + "x86_64-linux" = "linux-amd64"; 14 + "aarch64-darwin" = "darwin-aarch64"; 15 + "x86_64-darwin" = "darwin-amd64"; 16 }; 17 + javaPlatformVersion = javaVersion: 18 + "${javaVersion}-${javaPlatform.${stdenv.system} or (throw "Unsupported platform: ${stdenv.system}")}"; 19 + source = product: javaVersion: (import ./hashes.nix).${product}.${javaPlatformVersion javaVersion}; 20 21 + in 22 + rec { 23 + inherit buildGraalvm buildGraalvmProduct; 24 25 + graalvm11-ce = buildGraalvm rec { 26 + version = "22.3.1"; 27 + javaVersion = "11"; 28 + src = fetchurl (source "graalvm-ce" javaVersion); 29 + meta.platforms = builtins.attrNames javaPlatform; 30 + products = [ native-image-installable-svm-java11 ]; 31 + }; 32 33 + native-image-installable-svm-java11 = callPackage ./native-image-installable-svm.nix rec { 34 + javaVersion = "11"; 35 + version = "22.3.1"; 36 + src = fetchurl (source "native-image-installable-svm" javaVersion); 37 + }; 38 39 + graalvm17-ce = buildGraalvm rec { 40 + version = "22.3.1"; 41 + javaVersion = "17"; 42 + src = fetchurl (source "graalvm-ce" javaVersion); 43 + meta.platforms = builtins.attrNames javaPlatform; 44 + products = [ native-image-installable-svm-java17 ]; 45 }; 46 47 + native-image-installable-svm-java17 = callPackage ./native-image-installable-svm.nix rec { 48 javaVersion = "17"; 49 + version = "22.3.1"; 50 + src = fetchurl (source "native-image-installable-svm" javaVersion); 51 }; 52 }
-42
pkgs/development/compilers/graalvm/community-edition/graalvm11-ce-sources.json
··· 1 - { 2 - "darwin-aarch64": { 3 - "graalvm-ce|java11|22.3.0": { 4 - "sha256": "c9657e902c2ba674931c3cf233a38c4de3d5186ae5d70452f9df75ac0c4cacff", 5 - "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.0/graalvm-ce-java11-darwin-aarch64-22.3.0.tar.gz" 6 - }, 7 - "native-image-installable-svm|java11|22.3.0": { 8 - "sha256": "dd9f91a970c7270b3f7fe8e711ba1ae081d34ed433c75f2bb0459aaf19e0fbe7", 9 - "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.0/native-image-installable-svm-java11-darwin-aarch64-22.3.0.jar" 10 - } 11 - }, 12 - "darwin-amd64": { 13 - "graalvm-ce|java11|22.3.0": { 14 - "sha256": "b8b39d6a3e3a9ed6348c2776ff071fc64ca90f98999ee846e6ca7e5fdc746a8b", 15 - "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.0/graalvm-ce-java11-darwin-amd64-22.3.0.tar.gz" 16 - }, 17 - "native-image-installable-svm|java11|22.3.0": { 18 - "sha256": "00fe13c42813f581955eb35370bb8409ba17c7fdc83971d000baf695be2a0cb5", 19 - "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.0/native-image-installable-svm-java11-darwin-amd64-22.3.0.jar" 20 - } 21 - }, 22 - "linux-aarch64": { 23 - "graalvm-ce|java11|22.3.0": { 24 - "sha256": "c6646149dad486a0b02c5fc10649786240f275efda65aa14a25d01d2f5bafe15", 25 - "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.0/graalvm-ce-java11-linux-aarch64-22.3.0.tar.gz" 26 - }, 27 - "native-image-installable-svm|java11|22.3.0": { 28 - "sha256": "0886e214f03f8a44962ecab459a94afb5c6a0f20910cb128d9ff775f4a9e4162", 29 - "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.0/native-image-installable-svm-java11-linux-aarch64-22.3.0.jar" 30 - } 31 - }, 32 - "linux-amd64": { 33 - "graalvm-ce|java11|22.3.0": { 34 - "sha256": "d4200bcc43e5ad4e6949c1b1edc1e59f63066e3a2280d5bd82d0c9b1d67c3f2c", 35 - "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.0/graalvm-ce-java11-linux-amd64-22.3.0.tar.gz" 36 - }, 37 - "native-image-installable-svm|java11|22.3.0": { 38 - "sha256": "17843f92dc9de74b161a63c52cc2a4597e5472cf3f6f6d71930fb655b35f9208", 39 - "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.0/native-image-installable-svm-java11-linux-amd64-22.3.0.jar" 40 - } 41 - } 42 - }
···
-42
pkgs/development/compilers/graalvm/community-edition/graalvm17-ce-sources.json
··· 1 - { 2 - "darwin-aarch64": { 3 - "graalvm-ce|java17|22.3.0": { 4 - "sha256": "dfc0c8998b8d00fcca87ef1c866c6e4985fd20b0beba3021f9677f9b166dfaf8", 5 - "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.0/graalvm-ce-java17-darwin-aarch64-22.3.0.tar.gz" 6 - }, 7 - "native-image-installable-svm|java17|22.3.0": { 8 - "sha256": "b6e44cb03f560bb43db1fd0aa862af36ba1df6717765920d91c18519712adfe9", 9 - "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.0/native-image-installable-svm-java17-darwin-aarch64-22.3.0.jar" 10 - } 11 - }, 12 - "darwin-amd64": { 13 - "graalvm-ce|java17|22.3.0": { 14 - "sha256": "422cd6abecfb8b40238460c09c42c5a018cb92fab4165de9691be2e3c3d0e8d1", 15 - "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.0/graalvm-ce-java17-darwin-amd64-22.3.0.tar.gz" 16 - }, 17 - "native-image-installable-svm|java17|22.3.0": { 18 - "sha256": "9ce13874e62877d3bbe3faa4a57fbbffc766fdc8191971e7b25de0226fe86598", 19 - "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.0/native-image-installable-svm-java17-darwin-amd64-22.3.0.jar" 20 - } 21 - }, 22 - "linux-aarch64": { 23 - "graalvm-ce|java17|22.3.0": { 24 - "sha256": "e27249d9eef4504deb005cf14c6a028aad1adfa37209e12e9d7407710c08ed90", 25 - "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.0/graalvm-ce-java17-linux-aarch64-22.3.0.tar.gz" 26 - }, 27 - "native-image-installable-svm|java17|22.3.0": { 28 - "sha256": "d5b833c44d37fbe4df75906f73144e2db01e683bca3386fe185f4abbc8fbc798", 29 - "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.0/native-image-installable-svm-java17-linux-aarch64-22.3.0.jar" 30 - } 31 - }, 32 - "linux-amd64": { 33 - "graalvm-ce|java17|22.3.0": { 34 - "sha256": "3473d8b3b1bc682e95adfb3ac1d9a59b51b0f43e2b752f2a5b550e4ebfa2fd17", 35 - "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.0/graalvm-ce-java17-linux-amd64-22.3.0.tar.gz" 36 - }, 37 - "native-image-installable-svm|java17|22.3.0": { 38 - "sha256": "d1f5c58b65c57ad8a0c7da0c4569ce815ebf1ae503b0741ba1facf27b816d398", 39 - "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.0/native-image-installable-svm-java17-linux-amd64-22.3.0.jar" 40 - } 41 - } 42 - }
···
+71
pkgs/development/compilers/graalvm/community-edition/hashes.nix
···
··· 1 + # Generated by pkgs/development/compilers/graalvm/community-edition/update.sh script 2 + { 3 + "native-image-installable-svm" = { 4 + "11-linux-aarch64" = { 5 + sha256 = "0z9rbmci6yz7f7mqd3xzsxc5ih4hq72lyzqfchan7fr6mh38d6gw"; 6 + url = "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.1/native-image-installable-svm-java11-linux-aarch64-22.3.1.jar"; 7 + }; 8 + "17-linux-aarch64" = { 9 + sha256 = "03v20fc9famlnbrznpasnd5gdl5k9nl4dlj3pp6bad4y6l7rqnx5"; 10 + url = "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.1/native-image-installable-svm-java17-linux-aarch64-22.3.1.jar"; 11 + }; 12 + "11-linux-amd64" = { 13 + sha256 = "1yb7kpbs7hrzlysvrqjzgfz678p1hbg6237jzb35zmwdaczav51n"; 14 + url = "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.1/native-image-installable-svm-java11-linux-amd64-22.3.1.jar"; 15 + }; 16 + "17-linux-amd64" = { 17 + sha256 = "00fbyqsj4xj9ay8bki1190lf59bgrzvla8lzzq51p53a1bdrhhmv"; 18 + url = "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.1/native-image-installable-svm-java17-linux-amd64-22.3.1.jar"; 19 + }; 20 + "11-darwin-aarch64" = { 21 + sha256 = "1kaqvkbhj3iifq6asyrpy225a89y7klzbh7an1ycnvc2hvqkv4nz"; 22 + url = "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.1/native-image-installable-svm-java11-darwin-aarch64-22.3.1.jar"; 23 + }; 24 + "17-darwin-aarch64" = { 25 + sha256 = "09l7x4x8yanq55v6y6wpfx94mvsq1bpbnihknjc6dnq3vcrci77n"; 26 + url = "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.1/native-image-installable-svm-java17-darwin-aarch64-22.3.1.jar"; 27 + }; 28 + "11-darwin-amd64" = { 29 + sha256 = "036w9dmdcs46kmjqr3086mg389fgr3h1zysavfq8cbh199x0ibia"; 30 + url = "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.1/native-image-installable-svm-java11-darwin-amd64-22.3.1.jar"; 31 + }; 32 + "17-darwin-amd64" = { 33 + sha256 = "1hvjfvcn878bzvi944v3x23sby72hbfvg5s3zzspyc37l5cdpqi3"; 34 + url = "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.1/native-image-installable-svm-java17-darwin-amd64-22.3.1.jar"; 35 + }; 36 + }; 37 + "graalvm-ce" = { 38 + "11-linux-aarch64" = { 39 + sha256 = "1g4a3z9993pq52j3jf25pbcq9rvl8jz1yar8c859jw5chaf3ysml"; 40 + url = "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.1/graalvm-ce-java11-linux-aarch64-22.3.1.tar.gz"; 41 + }; 42 + "17-linux-aarch64" = { 43 + sha256 = "06288dwbql943nii74i9mngzb38h2nzrxzzgs346mgk2965gwm59"; 44 + url = "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.1/graalvm-ce-java17-linux-aarch64-22.3.1.tar.gz"; 45 + }; 46 + "11-linux-amd64" = { 47 + sha256 = "1f6xkdnxn6xsm24sqw24rsca72wm7v6q96m23l5fng5ym0jpfm2m"; 48 + url = "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.1/graalvm-ce-java11-linux-amd64-22.3.1.tar.gz"; 49 + }; 50 + "17-linux-amd64" = { 51 + sha256 = "0aci9i28rq5nk2qya9dcg5hxr3sgsbv7f5x8679hrjrqmrclmkrs"; 52 + url = "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.1/graalvm-ce-java17-linux-amd64-22.3.1.tar.gz"; 53 + }; 54 + "11-darwin-aarch64" = { 55 + sha256 = "0cbcm9d211m4b6g1bkpfksma917lzqkl4kx38vm1nrwjkll357y5"; 56 + url = "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.1/graalvm-ce-java11-darwin-aarch64-22.3.1.tar.gz"; 57 + }; 58 + "17-darwin-aarch64" = { 59 + sha256 = "1qbw3hlmqcrmd70xk56463scdxr50n66z2n3c24h68qlwwlpqc73"; 60 + url = "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.1/graalvm-ce-java17-darwin-aarch64-22.3.1.tar.gz"; 61 + }; 62 + "11-darwin-amd64" = { 63 + sha256 = "0a12rzf99x5l29f6bwm6myk18dgnrx2c9rwmii2pm864y7azlnij"; 64 + url = "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.1/graalvm-ce-java11-darwin-amd64-22.3.1.tar.gz"; 65 + }; 66 + "17-darwin-amd64" = { 67 + sha256 = "02lclv2j3v850izh84wdvksi3d3xmgpfl7x85vzifhgsvagm6sz4"; 68 + url = "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.1/graalvm-ce-java17-darwin-amd64-22.3.1.tar.gz"; 69 + }; 70 + }; 71 + }
-346
pkgs/development/compilers/graalvm/community-edition/mkGraal.nix
··· 1 - { 2 - # An attrset describing each platform configuration. All values are extract 3 - # from the GraalVM releases available on 4 - # https://github.com/graalvm/graalvm-ce-builds/releases 5 - # Example: 6 - # config = { 7 - # x86_64-linux = { 8 - # # List of products that will be included in the GraalVM derivation 9 - # # See `with{NativeImage,Ruby,Python,WASM,*}Svm` variables for the 10 - # # available values 11 - # products = [ "graalvm-ce" "native-image-installable-svm" ]; 12 - # # GraalVM arch, not to be confused with the nix platform 13 - # arch = "linux-amd64"; 14 - # # GraalVM version 15 - # version = "22.0.0.2"; 16 - # }; 17 - # } 18 - config 19 - # GraalVM version that will be used unless overridden by `config.<platform>.version` 20 - , defaultVersion 21 - # Java version used by GraalVM 22 - , javaVersion 23 - # Platforms were GraalVM will be allowed to build (i.e. `meta.platforms`) 24 - , platforms ? builtins.attrNames config 25 - # If set to true, update script will (re-)generate the sources file even if 26 - # there are no updates available 27 - , forceUpdate ? false 28 - # Path for the sources file that will be used 29 - # See `update.nix` file for a description on how this file works 30 - , sourcesPath ? ./. + "/graalvm${javaVersion}-ce-sources.json" 31 - }: 32 - 33 - { stdenv 34 - , lib 35 - , autoPatchelfHook 36 - , fetchurl 37 - , makeWrapper 38 - , setJavaClassPath 39 - , writeShellScriptBin 40 - # minimum dependencies 41 - , alsa-lib 42 - , fontconfig 43 - , Foundation 44 - , freetype 45 - , glibc 46 - , openssl 47 - , perl 48 - , unzip 49 - , xorg 50 - , zlib 51 - # runtime dependencies 52 - , binutils 53 - , cups 54 - , gcc 55 - , musl 56 - # runtime dependencies for GTK+ Look and Feel 57 - , gtkSupport ? stdenv.isLinux 58 - , cairo 59 - , glib 60 - # updateScript deps 61 - , gnused 62 - , gtk3 63 - , jq 64 - , writeShellScript 65 - # Use musl instead of glibc to allow true static builds in GraalVM's 66 - # Native Image (i.e.: `--static --libc=musl`). This will cause glibc static 67 - # builds to fail, so it should be used with care 68 - , useMusl ? false 69 - # Extra libraries to be included in native-image using '-H:CLibraryPath' flag 70 - , extraCLibs ? [ ] 71 - }: 72 - 73 - assert useMusl -> stdenv.isLinux; 74 - 75 - let 76 - platform = config.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); 77 - version = platform.version or defaultVersion; 78 - name = "graalvm${javaVersion}-ce"; 79 - sources = builtins.fromJSON (builtins.readFile sourcesPath); 80 - 81 - cLibs = [ glibc zlib.static ] 82 - ++ lib.optionals (!useMusl) [ glibc.static ] 83 - ++ lib.optionals useMusl [ musl ] 84 - ++ extraCLibs; 85 - 86 - runtimeLibraryPath = lib.makeLibraryPath 87 - ([ cups ] ++ lib.optionals gtkSupport [ cairo glib gtk3 ]); 88 - 89 - runtimeDependencies = lib.makeBinPath ([ 90 - binutils 91 - stdenv.cc 92 - ] ++ lib.optionals useMusl [ 93 - (lib.getDev musl) 94 - # GraalVM 21.3.0+ expects musl-gcc as <system>-musl-gcc 95 - (writeShellScriptBin "${stdenv.hostPlatform.system}-musl-gcc" ''${lib.getDev musl}/bin/musl-gcc "$@"'') 96 - ]); 97 - 98 - withNativeImageSvm = builtins.elem "native-image-installable-svm" platform.products; 99 - withRubySvm = builtins.elem "ruby-installable-svm" platform.products; 100 - withPythonSvm = builtins.elem "python-installable-svm" platform.products; 101 - withWasmSvm = builtins.elem "wasm-installable-svm" platform.products; 102 - 103 - graalvmXXX-ce = stdenv.mkDerivation rec { 104 - inherit version; 105 - pname = name; 106 - 107 - srcs = map fetchurl (builtins.attrValues sources.${platform.arch}); 108 - 109 - buildInputs = lib.optionals stdenv.isLinux [ 110 - alsa-lib # libasound.so wanted by lib/libjsound.so 111 - fontconfig 112 - freetype 113 - stdenv.cc.cc.lib # libstdc++.so.6 114 - xorg.libX11 115 - xorg.libXext 116 - xorg.libXi 117 - xorg.libXrender 118 - xorg.libXtst 119 - zlib 120 - ] ++ lib.optionals withRubySvm [ 121 - openssl # libssl.so wanted by languages/ruby/lib/mri/openssl.so 122 - ]; 123 - 124 - nativeBuildInputs = [ unzip perl makeWrapper ] 125 - ++ lib.optional stdenv.hostPlatform.isLinux autoPatchelfHook; 126 - 127 - unpackPhase = '' 128 - runHook preUnpack 129 - 130 - unpack_jar() { 131 - jar=$1 132 - unzip -q -o $jar -d $out 133 - perl -ne 'use File::Path qw(make_path); 134 - use File::Basename qw(dirname); 135 - if (/^(.+) = (.+)$/) { 136 - make_path dirname("$ENV{out}/$1"); 137 - system "ln -s $2 $ENV{out}/$1"; 138 - }' $out/META-INF/symlinks 139 - perl -ne 'if (/^(.+) = ([r-])([w-])([x-])([r-])([w-])([x-])([r-])([w-])([x-])$/) { 140 - my $mode = ($2 eq 'r' ? 0400 : 0) + ($3 eq 'w' ? 0200 : 0) + ($4 eq 'x' ? 0100 : 0) + 141 - ($5 eq 'r' ? 0040 : 0) + ($6 eq 'w' ? 0020 : 0) + ($7 eq 'x' ? 0010 : 0) + 142 - ($8 eq 'r' ? 0004 : 0) + ($9 eq 'w' ? 0002 : 0) + ($10 eq 'x' ? 0001 : 0); 143 - chmod $mode, "$ENV{out}/$1"; 144 - }' $out/META-INF/permissions 145 - rm -rf $out/META-INF 146 - } 147 - 148 - mkdir -p $out 149 - arr=($srcs) 150 - 151 - # The tarball on Linux has the following directory structure: 152 - # 153 - # graalvm-ce-java11-20.3.0/* 154 - # 155 - # while on Darwin it looks like this: 156 - # 157 - # graalvm-ce-java11-20.3.0/Contents/Home/* 158 - # 159 - # We therefor use --strip-components=1 vs 3 depending on the platform. 160 - tar xf ''${arr[0]} -C $out --strip-components=${ 161 - if stdenv.isLinux then "1" else "3" 162 - } 163 - 164 - # Sanity check 165 - if [ ! -d $out/bin ]; then 166 - echo "The `bin` is directory missing after extracting the graalvm" 167 - echo "tarball, please compare the directory structure of the" 168 - echo "tarball with what happens in the unpackPhase (in particular" 169 - echo "with regards to the `--strip-components` flag)." 170 - exit 1 171 - fi 172 - 173 - for jar in "''${arr[@]:1}"; do 174 - unpack_jar "$jar" 175 - done 176 - 177 - runHook postUnpack 178 - ''; 179 - 180 - installPhase = '' 181 - runHook preInstall 182 - 183 - # jni.h expects jni_md.h to be in the header search path. 184 - ln -s $out/include/linux/*_md.h $out/include/ 185 - 186 - # copy-paste openjdk's preFixup 187 - # Set JAVA_HOME automatically. 188 - mkdir -p $out/nix-support 189 - cat > $out/nix-support/setup-hook << EOF 190 - if [ -z "\''${JAVA_HOME-}" ]; then export JAVA_HOME=$out; fi 191 - EOF 192 - ${ 193 - # Wrap native-image binary to pass -H:CLibraryPath flag and find glibc 194 - lib.optionalString (withNativeImageSvm && stdenv.isLinux) '' 195 - wrapProgram $out/bin/native-image \ 196 - ${lib.concatStringsSep " " 197 - (map (l: "--add-flags '-H:CLibraryPath=${l}/lib'") cLibs)} 198 - '' 199 - } 200 - 201 - runHook postInstall 202 - ''; 203 - 204 - dontStrip = true; 205 - 206 - # Workaround for libssl.so.10 wanted by TruffleRuby 207 - # Resulting TruffleRuby cannot use `openssl` library. 208 - autoPatchelfIgnoreMissingDeps = withRubySvm && stdenv.isDarwin; 209 - 210 - preFixup = lib.optionalString (stdenv.isLinux) '' 211 - # Find all executables in any directory that contains '/bin/' 212 - for bin in $(find "$out" -executable -type f -wholename '*/bin/*'); do 213 - wrapProgram "$bin" \ 214 - --prefix LD_LIBRARY_PATH : "${runtimeLibraryPath}" \ 215 - --prefix PATH : "${runtimeDependencies}" 216 - done 217 - 218 - find "$out" -name libfontmanager.so -exec \ 219 - patchelf --add-needed libfontconfig.so {} \; 220 - 221 - ${ 222 - lib.optionalString withRubySvm '' 223 - # Workaround for libssl.so.10/libcrypto.so.10 wanted by TruffleRuby 224 - patchelf $out/languages/ruby/lib/mri/openssl.so \ 225 - --replace-needed libssl.so.10 libssl.so \ 226 - --replace-needed libcrypto.so.10 libcrypto.so 227 - '' 228 - } 229 - ''; 230 - 231 - # $out/bin/native-image needs zlib to build native executables. 232 - propagatedBuildInputs = [ setJavaClassPath zlib ] ++ 233 - # On Darwin native-image calls clang and it 234 - # tries to include <Foundation/Foundation.h>, 235 - # and Interactive Ruby (irb) requires OpenSSL 236 - # headers. 237 - lib.optionals stdenv.hostPlatform.isDarwin [ Foundation openssl ]; 238 - 239 - doInstallCheck = true; 240 - installCheckPhase = '' 241 - runHook preInstallCheck 242 - 243 - echo ${ 244 - lib.escapeShellArg '' 245 - public class HelloWorld { 246 - public static void main(String[] args) { 247 - System.out.println("Hello World"); 248 - } 249 - } 250 - '' 251 - } > HelloWorld.java 252 - $out/bin/javac HelloWorld.java 253 - 254 - # run on JVM with Graal Compiler 255 - echo "Testing GraalVM" 256 - $out/bin/java -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+UseJVMCICompiler HelloWorld | fgrep 'Hello World' 257 - 258 - ${ 259 - lib.optionalString withNativeImageSvm '' 260 - echo "Ahead-Of-Time compilation" 261 - $out/bin/native-image -H:-CheckToolchain -H:+ReportExceptionStackTraces HelloWorld 262 - ./helloworld | fgrep 'Hello World' 263 - '' 264 - } 265 - 266 - ${# --static flag doesn't work for darwin 267 - lib.optionalString (withNativeImageSvm && stdenv.isLinux && !useMusl) '' 268 - echo "Ahead-Of-Time compilation with -H:+StaticExecutableWithDynamicLibC" 269 - $out/bin/native-image -H:+StaticExecutableWithDynamicLibC HelloWorld 270 - ./helloworld | fgrep 'Hello World' 271 - 272 - echo "Ahead-Of-Time compilation with --static" 273 - $out/bin/native-image --static HelloWorld 274 - ./helloworld | fgrep 'Hello World' 275 - '' 276 - } 277 - 278 - ${# --static flag doesn't work for darwin 279 - lib.optionalString (withNativeImageSvm && stdenv.isLinux && useMusl) '' 280 - echo "Ahead-Of-Time compilation with --static and --libc=musl" 281 - $out/bin/native-image --libc=musl --static HelloWorld 282 - ./helloworld | fgrep 'Hello World' 283 - '' 284 - } 285 - 286 - ${ 287 - lib.optionalString withWasmSvm '' 288 - echo "Testing Jshell" 289 - echo '1 + 1' | $out/bin/jshell 290 - '' 291 - } 292 - 293 - ${ 294 - lib.optionalString withPythonSvm '' 295 - echo "Testing GraalPython" 296 - $out/bin/graalpython -c 'print(1 + 1)' 297 - echo '1 + 1' | $out/bin/graalpython 298 - '' 299 - } 300 - 301 - ${ 302 - lib.optionalString withRubySvm '' 303 - echo "Testing TruffleRuby" 304 - # Hide warnings about wrong locale 305 - export LANG=C 306 - export LC_ALL=C 307 - $out/bin/ruby -e 'puts(1 + 1)' 308 - '' 309 - # FIXME: irb is broken in all platforms 310 - + lib.optionalString false '' 311 - echo '1 + 1' | $out/bin/irb 312 - '' 313 - } 314 - 315 - runHook postInstallCheck 316 - ''; 317 - 318 - passthru = { 319 - inherit (platform) products; 320 - home = graalvmXXX-ce; 321 - updateScript = import ./update.nix { 322 - inherit config defaultVersion forceUpdate gnused jq lib name sourcesPath writeShellScript; 323 - graalVersion = version; 324 - javaVersion = "java${javaVersion}"; 325 - }; 326 - }; 327 - 328 - meta = with lib; { 329 - inherit platforms; 330 - homepage = "https://www.graalvm.org/"; 331 - description = "High-Performance Polyglot VM"; 332 - license = with licenses; [ upl gpl2Classpath bsd3 ]; 333 - sourceProvenance = with sourceTypes; [ binaryNativeCode ]; 334 - mainProgram = "java"; 335 - maintainers = with maintainers; [ 336 - bandresen 337 - hlolli 338 - glittershark 339 - babariviere 340 - ericdallo 341 - thiagokokada 342 - ]; 343 - }; 344 - }; 345 - in 346 - graalvmXXX-ce
···
+58
pkgs/development/compilers/graalvm/community-edition/native-image-installable-svm.nix
···
··· 1 + { lib 2 + , stdenv 3 + , graalvmCEPackages 4 + , gcc 5 + , glibc 6 + , javaVersion 7 + , musl 8 + , src 9 + , version 10 + , writeShellScriptBin 11 + , zlib 12 + , useMusl ? false 13 + , extraCLibs ? [ ] 14 + }: 15 + 16 + assert useMusl -> stdenv.isLinux; 17 + let 18 + cLibs = [ glibc zlib.static ] 19 + ++ lib.optionals (!useMusl) [ glibc.static ] 20 + ++ lib.optionals useMusl [ musl ] 21 + ++ extraCLibs; 22 + # GraalVM 21.3.0+ expects musl-gcc as <system>-musl-gcc 23 + musl-gcc = (writeShellScriptBin "${stdenv.hostPlatform.system}-musl-gcc" ''${lib.getDev musl}/bin/musl-gcc "$@"''); 24 + binPath = lib.makeBinPath ([ gcc ] ++ lib.optionals useMusl [ musl-gcc ]); 25 + in 26 + graalvmCEPackages.buildGraalvmProduct rec { 27 + inherit src javaVersion version; 28 + product = "native-image-installable-svm"; 29 + 30 + postInstall = lib.optionalString stdenv.isLinux '' 31 + wrapProgram $out/bin/native-image \ 32 + --prefix PATH : ${binPath} \ 33 + ${lib.concatStringsSep " " 34 + (map (l: "--add-flags '-H:CLibraryPath=${l}/lib'") cLibs)} 35 + ''; 36 + 37 + installCheckPhase = '' 38 + echo "Ahead-Of-Time compilation" 39 + $out/bin/native-image -H:-CheckToolchain -H:+ReportExceptionStackTraces HelloWorld 40 + ./helloworld | fgrep 'Hello World' 41 + 42 + ${lib.optionalString (stdenv.isLinux && !useMusl) '' 43 + echo "Ahead-Of-Time compilation with -H:+StaticExecutableWithDynamicLibC" 44 + $out/bin/native-image -H:+StaticExecutableWithDynamicLibC HelloWorld 45 + ./helloworld | fgrep 'Hello World' 46 + 47 + echo "Ahead-Of-Time compilation with --static" 48 + $out/bin/native-image --static HelloWorld 49 + ./helloworld | fgrep 'Hello World' 50 + ''} 51 + 52 + ${lib.optionalString (stdenv.isLinux && useMusl) '' 53 + echo "Ahead-Of-Time compilation with --static and --libc=musl" 54 + $out/bin/native-image --static HelloWorld --libc=musl 55 + ./helloworld | fgrep 'Hello World' 56 + ''} 57 + ''; 58 + }
-227
pkgs/development/compilers/graalvm/community-edition/update.nix
··· 1 - { config 2 - , defaultVersion 3 - , forceUpdate 4 - , gnused 5 - , graalVersion 6 - , javaVersion 7 - , jq 8 - , lib 9 - , name 10 - , sourcesPath 11 - , writeShellScript 12 - }: 13 - 14 - /* 15 - How to use: 16 - run `nix-shell maintainers/scripts/update.nix --argstr package graalvmXX-ce` 17 - to update the graalvmXX-ce-sources.json file. 18 - E.g: nix-shell maintainers/scripts/update.nix --argstr package graalvm17-ce 19 - 20 - Basic idea: 21 - If we know the platform, product, javaVersion and graalVersion 22 - we can create the url. This leads to the following json structure: 23 - { 24 - "platform/arch1": { 25 - "product1|javaVersion|graalVersion": { "sha256": "...", "url": "..."}, 26 - "product2|javaVersion|graalVersion": { "sha256": "...", "url": "..."}, 27 - ... 28 - }, 29 - "platform/arch2": { 30 - ... 31 - } 32 - } 33 - */ 34 - 35 - let 36 - separator = "|"; 37 - 38 - # isDev :: String -> Boolean 39 - isDev = version: 40 - lib.hasInfix "dev" version; 41 - 42 - # getLatestVersion :: String -> String 43 - getLatestVersion = currentVersion: 44 - let 45 - dev = if isDev currentVersion then "dev-" else ""; 46 - url = "https://api.github.com/repos/graalvm/graalvm-ce-${dev}builds/releases/latest"; 47 - file = builtins.fetchurl url; 48 - json = builtins.fromJSON (builtins.readFile file); 49 - in 50 - lib.removePrefix "vm-" json.tag_name; 51 - 52 - # getArchString :: String -> String 53 - getArchString = nixArchString: 54 - { 55 - "aarch64-linux" = "linux-aarch64"; 56 - "aarch64-darwin" = "darwin-aarch64"; 57 - "x86_64-linux" = "linux-amd64"; 58 - "x86_64-darwin" = "darwin-amd64"; 59 - }.${nixArchString}; 60 - 61 - 62 - # getProductSuffix :: String -> String 63 - getProductSuffix = productName: 64 - { 65 - "graalvm-ce" = ".tar.gz"; 66 - "native-image-installable-svm" = ".jar"; 67 - "ruby-installable-svm" = ".jar"; 68 - "wasm-installable-svm" = ".jar"; 69 - "python-installable-svm" = ".jar"; 70 - "js-installable-svm" = ".jar"; 71 - }.${productName}; 72 - 73 - # getProductSuffix :: String -> String 74 - getProductBaseUrl = productName: 75 - { 76 - "graalvm-ce" = "https://github.com/graalvm/graalvm-ce-builds/releases/download"; 77 - "native-image-installable-svm" = "https://github.com/graalvm/graalvm-ce-builds/releases/download"; 78 - "ruby-installable-svm" = "https://github.com/oracle/truffleruby/releases/download"; 79 - "wasm-installable-svm" = "https://github.com/graalvm/graalvm-ce-builds/releases/download"; 80 - "python-installable-svm" = "https://github.com/graalvm/graalpython/releases/download"; 81 - "js-installable-svm" = "https://github.com/oracle/graaljs/releases/download"; 82 - }.${productName}; 83 - 84 - # getDevUrl :: String 85 - getDevUrl = { arch, graalVersion, product, javaVersion }: 86 - let 87 - baseUrl = https://github.com/graalvm/graalvm-ce-dev-builds/releases/download; 88 - in 89 - "${baseUrl}/${graalVersion}/${product}-${javaVersion}-${arch}-dev${getProductSuffix product}"; 90 - 91 - # getReleaseUrl :: AttrSet -> String 92 - getReleaseUrl = { arch, graalVersion, product, javaVersion }: 93 - let baseUrl = getProductBaseUrl product; 94 - in 95 - "${baseUrl}/vm-${graalVersion}/${product}-${javaVersion}-${arch}-${graalVersion}${getProductSuffix product}"; 96 - 97 - # getUrl :: AttrSet -> String 98 - getUrl = args@{ arch, graalVersion, product, javaVersion }: 99 - if isDev graalVersion 100 - then getDevUrl args 101 - else getReleaseUrl args; 102 - 103 - # computeSha256 :: String -> String 104 - computeSha256 = url: 105 - builtins.hashFile "sha256" (builtins.fetchurl url); 106 - 107 - # downloadSha256 :: String -> String 108 - downloadSha256 = url: 109 - let sha256Url = url + ".sha256"; 110 - in 111 - builtins.readFile (builtins.fetchurl sha256Url); 112 - 113 - # getSha256 :: String -> String -> String 114 - getSha256 = graalVersion: url: 115 - if isDev graalVersion 116 - then computeSha256 url 117 - else downloadSha256 url; 118 - 119 - # cartesianZipListsWith :: (a -> b -> c) -> [a] -> [b] -> [c] 120 - cartesianZipListsWith = f: fst: snd: 121 - let 122 - cartesianProduct = lib.cartesianProductOfSets { a = fst; b = snd; }; 123 - fst' = builtins.catAttrs "a" cartesianProduct; 124 - snd' = builtins.catAttrs "b" cartesianProduct; 125 - in 126 - lib.zipListsWith f fst' snd'; 127 - 128 - # zipListsToAttrs :: [a] -> [b] -> AttrSet 129 - zipListsToAttrs = names: values: 130 - lib.listToAttrs ( 131 - lib.zipListsWith (name: value: { inherit name value; }) names values 132 - ); 133 - 134 - # genProductJavaVersionGraalVersionAttrSet :: String -> AttrSet 135 - genProductJavaVersionGraalVersionAttrSet = product_javaVersion_graalVersion: 136 - let 137 - attrNames = [ "product" "javaVersion" "graalVersion" ]; 138 - attrValues = lib.splitString separator product_javaVersion_graalVersion; 139 - in 140 - zipListsToAttrs attrNames attrValues; 141 - 142 - # genUrlAndSha256 :: String -> String -> AttrSet 143 - genUrlAndSha256 = arch: product_javaVersion_graalVersion: 144 - let 145 - productJavaVersionGraalVersion = 146 - (genProductJavaVersionGraalVersionAttrSet product_javaVersion_graalVersion) 147 - // { inherit arch; }; 148 - url = getUrl productJavaVersionGraalVersion; 149 - sha256 = getSha256 productJavaVersionGraalVersion.graalVersion url; 150 - in 151 - { 152 - ${arch} = { 153 - ${product_javaVersion_graalVersion} = { 154 - inherit sha256 url; 155 - }; 156 - }; 157 - }; 158 - 159 - # genArchProductVersionPairs :: String -> -> String -> AttrSet -> [AttrSet] 160 - genArchProductVersionList = javaVersion: graalVersion: archProducts: 161 - let 162 - arch = archProducts.arch; 163 - products = archProducts.products; 164 - javaGraalVersion = javaVersion + separator + (getLatestVersion (archProducts.version or graalVersion)); 165 - productJavaGraalVersionList = 166 - cartesianZipListsWith (a: b: a + separator + b) 167 - products [ javaGraalVersion ]; 168 - in 169 - cartesianZipListsWith (genUrlAndSha256) [ arch ] productJavaGraalVersionList; 170 - 171 - 172 - # genSources :: String -> String -> AttrSet -> Path String 173 - genSources = javaVersion: defaultVersion: config: 174 - let 175 - archProducts = builtins.attrValues config; 176 - sourcesList = builtins.concatMap (genArchProductVersionList javaVersion defaultVersion) archProducts; 177 - sourcesAttr = builtins.foldl' (lib.recursiveUpdate) { } sourcesList; 178 - in 179 - builtins.toFile "sources.json" (builtins.toJSON sourcesAttr); 180 - 181 - # isNew :: String -> String -> Boolean 182 - isNew = newVersion: currentVersion: 183 - { 184 - "-1" = false; 185 - "0" = false; 186 - "1" = true; 187 - }.${builtins.toString (builtins.compareVersions newVersion currentVersion)}; 188 - 189 - newVersion = getLatestVersion graalVersion; 190 - sourcesJson = genSources javaVersion defaultVersion config; 191 - sourcesJsonPath = lib.strings.escapeShellArg sourcesPath; 192 - 193 - # versionKeyInDefaultNix String -> String 194 - versionKeyInDefaultNix = graalVersion: 195 - if isDev graalVersion 196 - then "${name}-dev-version" 197 - else "${name}-release-version"; 198 - 199 - /* 200 - updateScriptText :: String -> String -> String 201 - Writes the json file and updates the version in default.nix using sed 202 - because update-source-version does not work srcs. 203 - */ 204 - updateScriptText = newVersion: currentVersion: 205 - 206 - if (forceUpdate || (isNew newVersion currentVersion)) 207 - then 208 - let 209 - versionKey = versionKeyInDefaultNix currentVersion; 210 - in 211 - '' 212 - echo "New version found. Updating ${currentVersion} -> ${newVersion}". 213 - export PATH="${lib.makeBinPath [ jq gnused ]}:$PATH" 214 - jq . ${sourcesJson} > ${sourcesJsonPath} 215 - sed -i 's|${versionKey} = "${currentVersion}";|${versionKey} = "${newVersion}";|' \ 216 - ${lib.strings.escapeShellArg ./default.nix} 217 - '' 218 - else ''echo "No new version found. Skip updating."''; 219 - 220 - in 221 - writeShellScript "update-graal.sh" '' 222 - set -o errexit 223 - set -o nounset 224 - set -o pipefail 225 - 226 - ${updateScriptText newVersion graalVersion} 227 - ''
···
+86
pkgs/development/compilers/graalvm/community-edition/update.sh
···
··· 1 + #!/usr/bin/env nix-shell 2 + #!nix-shell -p coreutils curl.out nix jq gnused -i bash 3 + 4 + set -eou pipefail 5 + 6 + cd "$(dirname "${BASH_SOURCE[0]}")" 7 + tmpfile="$(mktemp --suffix=.nix)" 8 + 9 + info() { echo "[INFO] $*"; } 10 + 11 + echo_file() { echo "$@" >> "$tmpfile"; } 12 + 13 + verlte() { 14 + [ "$1" = "$(echo -e "$1\n$2" | sort -V | head -n1)" ] 15 + } 16 + 17 + readonly nixpkgs=../../../../.. 18 + 19 + readonly current_version="$(nix-instantiate "$nixpkgs" --eval --strict -A graalvm-ce.version | tr -d \")" 20 + 21 + if [[ -z "${1:-}" ]]; then 22 + readonly gh_version="$(curl \ 23 + ${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} \ 24 + -s https://api.github.com/repos/graalvm/graalvm-ce-builds/releases/latest | \ 25 + jq --raw-output .tag_name)" 26 + readonly new_version="${gh_version//vm-/}" 27 + else 28 + readonly new_version="$1" 29 + fi 30 + 31 + info "Current version: $current_version" 32 + info "New version: $new_version" 33 + if verlte "$new_version" "$current_version"; then 34 + info "graalvm-ce $current_version is up-to-date." 35 + [[ -z "${FORCE:-}" ]] && exit 0 36 + else 37 + info "graalvm-ce $current_version is out-of-date. Updating..." 38 + fi 39 + 40 + declare -r -A products_urls=( 41 + [graalvm-ce]="https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-${new_version}/graalvm-ce-java@platform@-${new_version}.tar.gz" 42 + [native-image-installable-svm]="https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-${new_version}/native-image-installable-svm-java@platform@-${new_version}.jar" 43 + # [ruby-installable-svm]="https://github.com/oracle/truffleruby/releases/download/vm-${new_version}/ruby-installable-svm-java@platform@-${new_version}.jar" 44 + # [wasm-installable-svm]="https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-${new_version}/wasm-installable-svm-java@platform@-${new_version}.jar" 45 + # [python-installable-svm]="https://github.com/graalvm/graalpython/releases/download/vm-${new_version}/python-installable-svm-java@platform@-${new_version}.jar" 46 + ) 47 + 48 + readonly platforms=( 49 + "11-linux-aarch64" 50 + "17-linux-aarch64" 51 + "11-linux-amd64" 52 + "17-linux-amd64" 53 + "11-darwin-aarch64" 54 + "17-darwin-aarch64" 55 + "11-darwin-amd64" 56 + "17-darwin-amd64" 57 + ) 58 + 59 + info "Generating hashes.nix file for 'graalvm-ce' $new_version. This will take a while..." 60 + 61 + # Indentation of `echo_file` function is on purpose to make it easier to visualize the output 62 + echo_file "# Generated by $0 script" 63 + echo_file "{" 64 + for product in "${!products_urls[@]}"; do 65 + url="${products_urls["${product}"]}" 66 + echo_file " \"$product\" = {" 67 + for platform in "${platforms[@]}"; do 68 + if hash="$(nix-prefetch-url "${url//@platform@/$platform}")"; then 69 + echo_file " \"$platform\" = {" 70 + echo_file " sha256 = \"$hash\";" 71 + echo_file " url = \"${url//@platform@/${platform}}\";" 72 + echo_file " };" 73 + fi 74 + done 75 + echo_file " };" 76 + done 77 + echo_file "}" 78 + 79 + info "Updating graalvm-ce version..." 80 + # update-source-version does not work here since it expects src attribute 81 + sed "s|$current_version|$new_version|" -i default.nix 82 + 83 + info "Moving the temporary file to hashes.nix" 84 + mv "$tmpfile" hashes.nix 85 + 86 + info "Done!"
+1 -1
pkgs/development/libraries/rocm-device-libs/default.nix
··· 14 else throw "Unsupported ROCm LLVM platform"; 15 in stdenv.mkDerivation (finalAttrs: { 16 pname = "rocm-device-libs"; 17 - version = "5.4.2"; 18 19 src = fetchFromGitHub { 20 owner = "RadeonOpenCompute";
··· 14 else throw "Unsupported ROCm LLVM platform"; 15 in stdenv.mkDerivation (finalAttrs: { 16 pname = "rocm-device-libs"; 17 + version = "5.4.3"; 18 19 src = fetchFromGitHub { 20 owner = "RadeonOpenCompute";
+2 -2
pkgs/development/libraries/wxwidgets/wxGTK32.nix
··· 53 in 54 stdenv.mkDerivation rec { 55 pname = "wxwidgets"; 56 - version = "3.2.1"; 57 58 src = fetchFromGitHub { 59 owner = "wxWidgets"; 60 repo = "wxWidgets"; 61 rev = "v${version}"; 62 - hash = "sha256-k6td/8pF7ad7+gVm7L0jX79fHKwR7/qrOBpSFggyaI0="; 63 }; 64 65 # Workaround for pkgsMusl.wxGTK32 failing as:
··· 53 in 54 stdenv.mkDerivation rec { 55 pname = "wxwidgets"; 56 + version = "3.2.2.1"; 57 58 src = fetchFromGitHub { 59 owner = "wxWidgets"; 60 repo = "wxWidgets"; 61 rev = "v${version}"; 62 + hash = "sha256-u+INjo9EkW433OYoCDZpw5pcW1DyF/t/J5ntLZX+6aA="; 63 }; 64 65 # Workaround for pkgsMusl.wxGTK32 failing as:
+2 -2
pkgs/development/python-modules/aioesphomeapi/default.nix
··· 12 13 buildPythonPackage rec { 14 pname = "aioesphomeapi"; 15 - version = "13.2.0"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.9"; ··· 21 owner = "esphome"; 22 repo = pname; 23 rev = "refs/tags/v${version}"; 24 - hash = "sha256-ACO5vp5ZMxzfY4RBvZ+vbk+fsj43Q896bar0+HNYHwE="; 25 }; 26 27 postPatch = ''
··· 12 13 buildPythonPackage rec { 14 pname = "aioesphomeapi"; 15 + version = "13.3.1"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.9"; ··· 21 owner = "esphome"; 22 repo = pname; 23 rev = "refs/tags/v${version}"; 24 + hash = "sha256-Pca+SMuUL3XyQpLAL6SOYPnztc95WF2o0v4+5Nc5Nxg="; 25 }; 26 27 postPatch = ''
+3 -5
pkgs/development/python-modules/certomancer/default.nix
··· 21 22 buildPythonPackage rec { 23 pname = "certomancer"; 24 - version = "0.8.2"; 25 format = "setuptools"; 26 disabled = pythonOlder "3.7"; 27 ··· 30 owner = "MatthiasValvekens"; 31 repo = "certomancer"; 32 rev = version; 33 - sha256 = "sha256-H43NlFNTwZtedHsB7c62MocwQVOi5JjVJxRcZY+Wn7Y="; 34 }; 35 36 propagatedBuildInputs = [ ··· 43 ]; 44 45 postPatch = '' 46 - substituteInPlace setup.py \ 47 - --replace ", 'pytest-runner'" "" \ 48 - --replace "pyhanko-certvalidator==0.19.2" "pyhanko-certvalidator==0.19.5" 49 ''; 50 51 nativeCheckInputs = [
··· 21 22 buildPythonPackage rec { 23 pname = "certomancer"; 24 + version = "0.9.1"; 25 format = "setuptools"; 26 disabled = pythonOlder "3.7"; 27 ··· 30 owner = "MatthiasValvekens"; 31 repo = "certomancer"; 32 rev = version; 33 + sha256 = "4v2e46ZrzhKXpMULj0vmDRoLOypi030eaADAYjLMg5M="; 34 }; 35 36 propagatedBuildInputs = [ ··· 43 ]; 44 45 postPatch = '' 46 + substituteInPlace setup.py --replace ", 'pytest-runner'" "" 47 ''; 48 49 nativeCheckInputs = [
+2 -2
pkgs/development/python-modules/chart-studio/default.nix
··· 10 11 buildPythonPackage rec { 12 pname = "chart-studio"; 13 - version = "5.11.0"; 14 15 # chart-studio was split from plotly 16 src = fetchFromGitHub { 17 owner = "plotly"; 18 repo = "plotly.py"; 19 rev = "refs/tags/v${version}"; 20 - sha256 = "sha256-Reti8tvBpBxpfNjnZs8wWuS76oEWIKPCxzSdTEO+ykA="; 21 }; 22 23 sourceRoot = "source/packages/python/chart-studio";
··· 10 11 buildPythonPackage rec { 12 pname = "chart-studio"; 13 + version = "5.13.0"; 14 15 # chart-studio was split from plotly 16 src = fetchFromGitHub { 17 owner = "plotly"; 18 repo = "plotly.py"; 19 rev = "refs/tags/v${version}"; 20 + sha256 = "sha256-j4n5goW2Iu5Z1+Gta1Ar34WXaF8ryUKs5P+6Onhmyh0="; 21 }; 22 23 sourceRoot = "source/packages/python/chart-studio";
+2 -2
pkgs/development/python-modules/clustershell/default.nix
··· 12 13 buildPythonPackage rec { 14 pname = "ClusterShell"; 15 - version = "1.9"; 16 17 src = fetchPypi { 18 inherit pname version; 19 - sha256 = "sha256-A0arNKF9jPRj3GnnOBHG8xDD2YEPpMrPRbZEaKg8FHQ="; 20 }; 21 22 postPatch = ''
··· 12 13 buildPythonPackage rec { 14 pname = "ClusterShell"; 15 + version = "1.9.1"; 16 17 src = fetchPypi { 18 inherit pname version; 19 + sha256 = "sha256-bwqzyhQbUI2gPOGb1S8eXo0pdz/DBi1782RQqCIH7Bs="; 20 }; 21 22 postPatch = ''
+2 -2
pkgs/development/python-modules/coconut/default.nix
··· 14 15 buildPythonPackage rec { 16 pname = "coconut"; 17 - version = "2.1.1"; 18 19 src = fetchFromGitHub { 20 owner = "evhub"; 21 repo = "coconut"; 22 rev = "refs/tags/v${version}"; 23 - sha256 = "sha256-zDMcQPAYlxid3fcMT8kRzE+LN1dxUVWjkg8pdVtmwZg="; 24 }; 25 26 propagatedBuildInputs = [ cpyparsing ipykernel mypy pygments prompt-toolkit watchdog ];
··· 14 15 buildPythonPackage rec { 16 pname = "coconut"; 17 + version = "2.2.0"; 18 19 src = fetchFromGitHub { 20 owner = "evhub"; 21 repo = "coconut"; 22 rev = "refs/tags/v${version}"; 23 + sha256 = "sha256-+OrVNtre7kAfU5L7/6DadZxFNWVt5raF6HLGXHHpOvE="; 24 }; 25 26 propagatedBuildInputs = [ cpyparsing ipykernel mypy pygments prompt-toolkit watchdog ];
+3 -1
pkgs/development/python-modules/collections-extended/default.nix
··· 5 , poetry-core 6 , pytestCheckHook 7 , pythonOlder 8 }: 9 10 buildPythonPackage rec { ··· 12 version = "2.0.2"; 13 format = "pyproject"; 14 15 - disabled = pythonOlder "3.6"; 16 17 src = fetchFromGitHub { 18 owner = "mlenzen";
··· 5 , poetry-core 6 , pytestCheckHook 7 , pythonOlder 8 + , pythonAtLeast 9 }: 10 11 buildPythonPackage rec { ··· 13 version = "2.0.2"; 14 format = "pyproject"; 15 16 + # https://github.com/mlenzen/collections-extended/issues/198 17 + disabled = pythonOlder "3.6" || pythonAtLeast "3.11"; 18 19 src = fetchFromGitHub { 20 owner = "mlenzen";
+2 -2
pkgs/development/python-modules/drf-yasg/default.nix
··· 14 15 buildPythonPackage rec { 16 pname = "drf-yasg"; 17 - version = "1.21.4"; 18 19 src = fetchPypi { 20 inherit pname version; 21 - sha256 = "sha256-iHyfeeZPRqpIl0I05hApsb6msS6mKKj8ijaXWJrdHT4="; 22 }; 23 24 postPatch = ''
··· 14 15 buildPythonPackage rec { 16 pname = "drf-yasg"; 17 + version = "1.21.5"; 18 19 src = fetchPypi { 20 inherit pname version; 21 + sha256 = "sha256-zu8MO13EOJeBr9eG5tw2l68qL+DYck7h9jfCPXW7xbI="; 22 }; 23 24 postPatch = ''
+2 -2
pkgs/development/python-modules/holoviews/default.nix
··· 17 18 buildPythonPackage rec { 19 pname = "holoviews"; 20 - version = "1.15.3"; 21 format = "setuptools"; 22 23 disabled = pythonOlder "3.7"; 24 25 src = fetchPypi { 26 inherit pname version; 27 - hash = "sha256-pFiRzSuPzUCHQs//81HJKPv0zx730fBEQsfYeG7o6ZQ="; 28 }; 29 30 propagatedBuildInputs = [
··· 17 18 buildPythonPackage rec { 19 pname = "holoviews"; 20 + version = "1.15.4"; 21 format = "setuptools"; 22 23 disabled = pythonOlder "3.7"; 24 25 src = fetchPypi { 26 inherit pname version; 27 + hash = "sha256-StwTN1DmDnNiZ+3iF2NW5qMDFDiwkTZ8tPKzhN6ZrgM="; 28 }; 29 30 propagatedBuildInputs = [
+2 -2
pkgs/development/python-modules/iminuit/default.nix
··· 9 10 buildPythonPackage rec { 11 pname = "iminuit"; 12 - version = "2.18.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchPypi { 18 inherit pname version; 19 - hash = "sha256-fuLGoLzaxYGzj66NDzQ/3uVfkfH2psyWQ/z7zGwtw+Y="; 20 }; 21 22 nativeBuildInputs = [
··· 9 10 buildPythonPackage rec { 11 pname = "iminuit"; 12 + version = "2.19.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchPypi { 18 inherit pname version; 19 + hash = "sha256-9NHLrM8RXNxIZpaPZJ8qN3lKXA3gGN6BVqp0VWNQpUw="; 20 }; 21 22 nativeBuildInputs = [
+13 -4
pkgs/development/python-modules/inquirer/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 5 # native 6 , poetry-core ··· 18 19 buildPythonPackage rec { 20 pname = "inquirer"; 21 - version = "3.1.1"; 22 format = "pyproject"; 23 24 src = fetchFromGitHub rec { 25 owner = "magmax"; 26 repo = "python-inquirer"; 27 rev = "refs/tags/v${version}"; 28 - sha256 = "sha256-gDJqD0IHshyGw9MmMtYjkkpvYklRLgPd6EtLVqi2I/o="; 29 }; 30 31 nativeBuildInputs = [ ··· 44 pytestCheckHook 45 ]; 46 47 meta = with lib; { 48 - homepage = "https://github.com/magmax/python-inquirer"; 49 description = "A collection of common interactive command line user interfaces, based on Inquirer.js"; 50 license = licenses.mit; 51 - maintainers = [ maintainers.mmahut ]; 52 }; 53 }
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 + , pythonOlder 5 6 # native 7 , poetry-core ··· 19 20 buildPythonPackage rec { 21 pname = "inquirer"; 22 + version = "3.1.2"; 23 format = "pyproject"; 24 + 25 + disabled = pythonOlder "3.7"; 26 27 src = fetchFromGitHub rec { 28 owner = "magmax"; 29 repo = "python-inquirer"; 30 rev = "refs/tags/v${version}"; 31 + hash = "sha256-7kq0sZzPeCX7TA5Cl2rg6Uw+9jLz335a+tOrO0+Cyas="; 32 }; 33 34 nativeBuildInputs = [ ··· 47 pytestCheckHook 48 ]; 49 50 + 51 + pythonImportsCheck = [ 52 + "inquirer" 53 + ]; 54 + 55 meta = with lib; { 56 description = "A collection of common interactive command line user interfaces, based on Inquirer.js"; 57 + homepage = "https://github.com/magmax/python-inquirer"; 58 + changelog = "https://github.com/magmax/python-inquirer/releases/tag/v${version}"; 59 license = licenses.mit; 60 + maintainers = with maintainers; [ mmahut ]; 61 }; 62 }
-30
pkgs/development/python-modules/lightning/default.nix
··· 1 - { lib 2 - , buildPythonPackage 3 - , fetchPypi 4 - , pytest 5 - , jinja2 6 - , matplotlib 7 - , numpy 8 - , requests 9 - , six 10 - }: 11 - 12 - buildPythonPackage rec { 13 - version = "1.2.1"; 14 - pname = "lightning-python"; 15 - 16 - src = fetchPypi { 17 - inherit pname version; 18 - sha256 = "3987d7d4a634bdb6db9bcf212cf4d2f72bab5bc039f4f6cbc02c9d01c4ade792"; 19 - }; 20 - 21 - buildInputs = [ pytest ]; 22 - propagatedBuildInputs = [ jinja2 matplotlib numpy requests six ]; 23 - 24 - meta = with lib; { 25 - description = "A Python client library for the Lightning data visualization server"; 26 - homepage = "http://lightning-viz.org"; 27 - license = licenses.mit; 28 - }; 29 - 30 - }
···
+2 -2
pkgs/development/python-modules/limnoria/default.nix
··· 15 16 buildPythonPackage rec { 17 pname = "limnoria"; 18 - version = "2023.1.12"; 19 format = "setuptools"; 20 21 disabled = pythonOlder "3.6"; 22 23 src = fetchPypi { 24 inherit pname version; 25 - hash = "sha256-V3DkIsnVv/HekWuOnIKnMHhccDGWun7mF7AcBSEsy6o="; 26 }; 27 28 propagatedBuildInputs = [
··· 15 16 buildPythonPackage rec { 17 pname = "limnoria"; 18 + version = "2023.1.28"; 19 format = "setuptools"; 20 21 disabled = pythonOlder "3.6"; 22 23 src = fetchPypi { 24 inherit pname version; 25 + hash = "sha256-yIKJAW5hb7EOUiS7G+Q4QAESfG4dbfqHScaQBKLMkeM="; 26 }; 27 28 propagatedBuildInputs = [
+50
pkgs/development/python-modules/n3fit/default.nix
···
··· 1 + { lib 2 + , buildPythonPackage 3 + , hyperopt 4 + , keras 5 + , nnpdf 6 + , psutil 7 + , tensorflow 8 + , validphys2 9 + }: 10 + 11 + buildPythonPackage rec { 12 + pname = "n3fit"; 13 + version = "4.0"; 14 + format = "setuptools"; 15 + 16 + inherit (nnpdf) src; 17 + 18 + prePatch = '' 19 + cd n3fit 20 + ''; 21 + 22 + postPatch = '' 23 + substituteInPlace src/n3fit/version.py \ 24 + --replace '= __give_git()' '= "'$version'"' 25 + ''; 26 + 27 + propagatedBuildInputs = [ 28 + hyperopt 29 + keras 30 + psutil 31 + tensorflow 32 + validphys2 33 + ]; 34 + 35 + postInstall = '' 36 + for prog in "$out"/bin/*; do 37 + wrapProgram "$prog" --set PYTHONPATH "$PYTHONPATH:$(toPythonPath "$out")" 38 + done 39 + ''; 40 + 41 + doCheck = false; # no tests 42 + pythonImportsCheck = [ "n3fit" ]; 43 + 44 + meta = with lib; { 45 + description = "NNPDF fitting framework"; 46 + homepage = "https://docs.nnpdf.science"; 47 + inherit (nnpdf.meta) license; 48 + maintainers = with maintainers; [ veprbl ]; 49 + }; 50 + }
+2 -2
pkgs/development/python-modules/oralb-ble/default.nix
··· 12 13 buildPythonPackage rec { 14 pname = "oralb-ble"; 15 - version = "0.17.4"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.9"; ··· 21 owner = "Bluetooth-Devices"; 22 repo = pname; 23 rev = "refs/tags/v${version}"; 24 - hash = "sha256-KvvcyeYXBtV/sUKMv+1xoXH9ALUX46EWS/STFZkCnUQ="; 25 }; 26 27 nativeBuildInputs = [
··· 12 13 buildPythonPackage rec { 14 pname = "oralb-ble"; 15 + version = "0.17.5"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.9"; ··· 21 owner = "Bluetooth-Devices"; 22 repo = pname; 23 rev = "refs/tags/v${version}"; 24 + hash = "sha256-Lwrr5XzU2pbx3cYkvYtHgXFhGnz3cMBnNFWCpuY3ltg="; 25 }; 26 27 nativeBuildInputs = [
+2 -2
pkgs/development/python-modules/oslo-log/default.nix
··· 17 18 buildPythonPackage rec { 19 pname = "oslo-log"; 20 - version = "5.0.2"; 21 format = "setuptools"; 22 23 disabled = pythonOlder "3.6"; ··· 25 src = fetchPypi { 26 pname = "oslo.log"; 27 inherit version; 28 - hash = "sha256-5F5zEqpxUooWc2zkUVK+PxrxI/XvYqqB2gRoBVhPzKM="; 29 }; 30 31 propagatedBuildInputs = [
··· 17 18 buildPythonPackage rec { 19 pname = "oslo-log"; 20 + version = "5.1.0"; 21 format = "setuptools"; 22 23 disabled = pythonOlder "3.6"; ··· 25 src = fetchPypi { 26 pname = "oslo.log"; 27 inherit version; 28 + hash = "sha256-9qw3r5WRjgXXod19CwVSuosisuQwhi6zNt5ZLSXITyk="; 29 }; 30 31 propagatedBuildInputs = [
+3 -3
pkgs/development/python-modules/primer3/default.nix
··· 9 10 buildPythonPackage rec { 11 pname = "primer3"; 12 - version = "0.6.1"; 13 14 src = fetchFromGitHub { 15 owner = "libnano"; 16 repo = "primer3-py"; 17 - rev = version; 18 - sha256 = "1glybwp9w2m1ydvaphr41gj31d8fvlh40s35galfbjqa563si72g"; 19 }; 20 21 nativeBuildInputs = [ cython ]
··· 9 10 buildPythonPackage rec { 11 pname = "primer3"; 12 + version = "1.0.0"; 13 14 src = fetchFromGitHub { 15 owner = "libnano"; 16 repo = "primer3-py"; 17 + rev = "refs/tags/v${version}"; 18 + sha256 = "sha256-o9B8TN3mOchOO7dz34mI3NDtIhHSlA9+lMNsYcxhTE0="; 19 }; 20 21 nativeBuildInputs = [ cython ]
+2 -2
pkgs/development/python-modules/quantiphy/default.nix
··· 14 15 buildPythonPackage rec { 16 pname = "quantiphy"; 17 - version = "2.18"; 18 format = "pyproject"; 19 20 disabled = pythonOlder "3.7"; ··· 23 owner = "KenKundert"; 24 repo = "quantiphy"; 25 rev = "v${version}"; 26 - hash = "sha256-KXZQTal5EQDrMNV9QKeuLeYYDaMfAJlEDEagq2XG9/Q="; 27 }; 28 29 nativeBuildInputs = [
··· 14 15 buildPythonPackage rec { 16 pname = "quantiphy"; 17 + version = "2.19"; 18 format = "pyproject"; 19 20 disabled = pythonOlder "3.7"; ··· 23 owner = "KenKundert"; 24 repo = "quantiphy"; 25 rev = "v${version}"; 26 + hash = "sha256-oSWq/D1EX6mxUDElfujyOSEtql0csAm72u2B5RuQddE="; 27 }; 28 29 nativeBuildInputs = [
+28 -7
pkgs/development/python-modules/raincloudy/default.nix
··· 1 { lib 2 , beautifulsoup4 3 , buildPythonPackage 4 , fetchFromGitHub 5 , html5lib 6 , pytestCheckHook 7 , pythonOlder 8 , requests 9 , requests-mock 10 , urllib3 11 }: 12 ··· 24 hash = "sha256-qCkBVirM09iA1sXiOB9FJns8bHjQq7rRk8XbRWrtBDI="; 25 }; 26 27 propagatedBuildInputs = [ 28 requests 29 beautifulsoup4 30 urllib3 ··· 32 ]; 33 34 nativeCheckInputs = [ 35 pytestCheckHook 36 requests-mock 37 ]; 38 39 - postPatch = '' 40 - # https://github.com/vanstinator/raincloudy/pull/60 41 - substituteInPlace setup.py \ 42 - --replace "bs4" "beautifulsoup4" \ 43 - --replace "html5lib==1.0.1" "html5lib" 44 - ''; 45 - 46 pythonImportsCheck = [ 47 "raincloudy" 48 ]; 49 50 disabledTests = [
··· 1 { lib 2 + , aiohttp 3 + , aioresponses 4 , beautifulsoup4 5 , buildPythonPackage 6 , fetchFromGitHub 7 , html5lib 8 + , pytest-asyncio 9 + , pytest-aiohttp 10 , pytestCheckHook 11 , pythonOlder 12 , requests 13 , requests-mock 14 + , setuptools 15 + , setuptools-scm 16 , urllib3 17 }: 18 ··· 30 hash = "sha256-qCkBVirM09iA1sXiOB9FJns8bHjQq7rRk8XbRWrtBDI="; 31 }; 32 33 + nativeBuildInputs = [ 34 + setuptools 35 + setuptools-scm 36 + ]; 37 + 38 + SETUPTOOLS_SCM_PRETEND_VERSION = version; 39 + 40 + postPatch = '' 41 + # https://github.com/vanstinator/raincloudy/pull/60 42 + substituteInPlace setup.py \ 43 + --replace "bs4" "beautifulsoup4" \ 44 + 45 + # fix raincloudy.aio package discovery, by relying on 46 + # autodiscovery instead. 47 + sed -i '/packages=/d' setup.py 48 + ''; 49 + 50 propagatedBuildInputs = [ 51 + aiohttp 52 requests 53 beautifulsoup4 54 urllib3 ··· 56 ]; 57 58 nativeCheckInputs = [ 59 + aioresponses 60 + pytest-asyncio 61 + pytest-aiohttp 62 pytestCheckHook 63 requests-mock 64 ]; 65 66 pythonImportsCheck = [ 67 "raincloudy" 68 + "raincloudy.aio" 69 ]; 70 71 disabledTests = [
+2 -2
pkgs/development/python-modules/types-protobuf/default.nix
··· 6 7 buildPythonPackage rec { 8 pname = "types-protobuf"; 9 - version = "4.21.0.2"; 10 format = "setuptools"; 11 12 src = fetchPypi { 13 inherit pname version; 14 - sha256 = "sha256-ffSD00rT/LH6f/8Qc1YNWWyawfQZz6hRsiDJqTOGyZg="; 15 }; 16 17 propagatedBuildInputs = [
··· 6 7 buildPythonPackage rec { 8 pname = "types-protobuf"; 9 + version = "4.21.0.5"; 10 format = "setuptools"; 11 12 src = fetchPypi { 13 inherit pname version; 14 + sha256 = "sha256-gZp8Z+aUduOcPwyYcbu57oIxNkXTF7ba62CslaMJ29M="; 15 }; 16 17 propagatedBuildInputs = [
+4
pkgs/development/python-modules/validobj/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 , flit 5 , hypothesis ··· 10 pname = "validobj"; 11 version = "0.6"; 12 format = "pyproject"; 13 14 src = fetchPypi { 15 inherit pname version;
··· 1 { lib 2 , buildPythonPackage 3 + , pythonAtLeast 4 , fetchPypi 5 , flit 6 , hypothesis ··· 11 pname = "validobj"; 12 version = "0.6"; 13 format = "pyproject"; 14 + 15 + # https://github.com/Zaharid/validobj/issues/8 16 + disabled = pythonAtLeast "3.11"; 17 18 src = fetchPypi { 19 inherit pname version;
+1 -1
pkgs/development/python-modules/validphys2/default.nix
··· 22 23 postPatch = '' 24 substituteInPlace src/validphys/version.py \ 25 - --replace '= __give_git()' '= "${version}"' 26 ''; 27 28 propagatedBuildInputs = [
··· 22 23 postPatch = '' 24 substituteInPlace src/validphys/version.py \ 25 + --replace '= __give_git()' '= "'$version'"' 26 ''; 27 28 propagatedBuildInputs = [
+2 -2
pkgs/development/python-modules/vowpalwabbit/default.nix
··· 18 19 buildPythonPackage rec { 20 pname = "vowpalwabbit"; 21 - version = "9.6.0"; 22 23 src = fetchPypi{ 24 inherit pname version; 25 - sha256 = "sha256-LHs98lccPjub5GDPB3dxtkOYCDxri04CVpSSsypa4xI="; 26 }; 27 28 nativeBuildInputs = [
··· 18 19 buildPythonPackage rec { 20 pname = "vowpalwabbit"; 21 + version = "9.7.0"; 22 23 src = fetchPypi{ 24 inherit pname version; 25 + sha256 = "sha256-O3WnG3JQ7CEHMPYTmE9pgnS8YZs717P6wBKBnXIvvFI="; 26 }; 27 28 nativeBuildInputs = [
+2 -2
pkgs/development/python-modules/xiaomi-ble/default.nix
··· 14 15 buildPythonPackage rec { 16 pname = "xiaomi-ble"; 17 - version = "0.16.1"; 18 format = "pyproject"; 19 20 disabled = pythonOlder "3.9"; ··· 23 owner = "Bluetooth-Devices"; 24 repo = pname; 25 rev = "refs/tags/v${version}"; 26 - hash = "sha256-JsrOt6LmmhJZ4MBwLVKKt3IMbvAnxJx70AZROhb9gbc="; 27 }; 28 29 nativeBuildInputs = [
··· 14 15 buildPythonPackage rec { 16 pname = "xiaomi-ble"; 17 + version = "0.16.3"; 18 format = "pyproject"; 19 20 disabled = pythonOlder "3.9"; ··· 23 owner = "Bluetooth-Devices"; 24 repo = pname; 25 rev = "refs/tags/v${version}"; 26 + hash = "sha256-yk3rEOcHIEZLz3qKxeGzHuVUWWxG3GhSt9vc0pXcanQ="; 27 }; 28 29 nativeBuildInputs = [
+2 -2
pkgs/development/python-modules/yalexs-ble/default.nix
··· 13 14 buildPythonPackage rec { 15 pname = "yalexs-ble"; 16 - version = "1.12.8"; 17 format = "pyproject"; 18 19 disabled = pythonOlder "3.9"; ··· 22 owner = "bdraco"; 23 repo = pname; 24 rev = "refs/tags/v${version}"; 25 - hash = "sha256-04Xl2TBs9RL+KWmJgUY+PDoYN4AAvrcWP7TJBEu5lNU="; 26 }; 27 28 nativeBuildInputs = [
··· 13 14 buildPythonPackage rec { 15 pname = "yalexs-ble"; 16 + version = "1.12.12"; 17 format = "pyproject"; 18 19 disabled = pythonOlder "3.9"; ··· 22 owner = "bdraco"; 23 repo = pname; 24 rev = "refs/tags/v${version}"; 25 + hash = "sha256-CO+plbsZzQkxtvz8N3QP71P2V1wPdyp1oeW/424mZks="; 26 }; 27 28 nativeBuildInputs = [
+1 -1
pkgs/development/tools/bbin/default.nix
··· 29 mkdir -p $out/share 30 cp -r docs $out/share/docs 31 wrapProgram $out/bin/bbin \ 32 - --prefix PATH : "${lib.makeBinPath [ babashka graalvm17-ce ]}" 33 34 runHook postInstall 35 '';
··· 29 mkdir -p $out/share 30 cp -r docs $out/share/docs 31 wrapProgram $out/bin/bbin \ 32 + --prefix PATH : "${lib.makeBinPath [ babashka babashka.graalvmDrv ]}" 33 34 runHook postInstall 35 '';
-41
pkgs/development/tools/cosmoc/default.nix
··· 1 - { stdenv, lib, cosmopolitan }: 2 - 3 - stdenv.mkDerivation { 4 - pname = "cosmoc"; 5 - inherit (cosmopolitan) version; 6 - 7 - doInstallCheck = true; 8 - dontUnpack = true; 9 - dontBuild = true; 10 - 11 - # compiler arguments based on upstream README.md 12 - installPhase = '' 13 - runHook preInstall 14 - mkdir -p $out/bin 15 - cat <<EOF >$out/bin/cosmoc 16 - #!${stdenv.shell} 17 - exec ${stdenv.cc}/bin/${stdenv.cc.targetPrefix}gcc \ 18 - -Os -static -nostdlib -nostdinc -fno-pie -no-pie -mno-red-zone \ 19 - -fno-omit-frame-pointer -pg -mnop-mcount -mno-tls-direct-seg-refs \ 20 - "\$@" \ 21 - -fuse-ld=bfd -Wl,-T,${cosmopolitan}/lib/ape.lds -Wl,--gc-sections \ 22 - -include ${cosmopolitan}/include/cosmopolitan.h \ 23 - ${cosmopolitan}/lib/{crt.o,ape-no-modify-self.o,cosmopolitan.a} 24 - EOF 25 - chmod +x $out/bin/cosmoc 26 - runHook postInstall 27 - ''; 28 - 29 - installCheckPhase = '' 30 - printf 'main() { printf("hello world\\n"); }\n' >hello.c 31 - $out/bin/cosmoc hello.c 32 - ./a.out 33 - ''; 34 - 35 - meta = with lib; { 36 - homepage = "https://justine.lol/cosmopolitan/"; 37 - description = "compiler for Cosmopolitan C programs"; 38 - license = licenses.mit; 39 - maintainers = teams.cosmopolitan.members; 40 - }; 41 - }
···
+35
pkgs/development/tools/cosmocc/default.nix
···
··· 1 + { runCommand, lib, cosmopolitan }: 2 + 3 + let 4 + cosmocc = 5 + runCommand "cosmocc" 6 + { 7 + pname = "cosmocc"; 8 + inherit (cosmopolitan) version; 9 + 10 + meta = with lib; { 11 + homepage = "https://justine.lol/cosmopolitan/"; 12 + description = "compilers for Cosmopolitan C/C++ programs"; 13 + license = licenses.mit; 14 + maintainers = teams.cosmopolitan.members; 15 + }; 16 + passthru.tests = { 17 + cc = runCommand "c-test" { } '' 18 + cat > hello.c << END 19 + #include <stdio.h> 20 + int main() { 21 + printf("Hello world!\n"); 22 + return 0; 23 + } 24 + END 25 + ${cosmocc}/bin/cosmocc hello.c 26 + ./a.out > $out 27 + ''; 28 + }; 29 + } '' 30 + mkdir -p $out/bin 31 + install ${cosmopolitan.dist}/tool/scripts/{cosmocc,cosmoc++} $out/bin 32 + sed 's|/opt/cosmo\([ /]\)|${cosmopolitan.dist}\1|g' -i $out/bin/* 33 + ''; 34 + in 35 + cosmocc
+2 -2
pkgs/development/tools/jbang/default.nix
··· 1 { stdenv, lib, fetchzip, jdk, makeWrapper, coreutils, curl }: 2 3 stdenv.mkDerivation rec { 4 - version = "0.102.0"; 5 pname = "jbang"; 6 7 src = fetchzip { 8 url = "https://github.com/jbangdev/jbang/releases/download/v${version}/${pname}-${version}.tar"; 9 - sha256 = "sha256-5T0MQ1b1kA7MVm2drNbUdK6CitTjT76ORPN/BJmsmsM="; 10 }; 11 12 nativeBuildInputs = [ makeWrapper ];
··· 1 { stdenv, lib, fetchzip, jdk, makeWrapper, coreutils, curl }: 2 3 stdenv.mkDerivation rec { 4 + version = "0.103.0"; 5 pname = "jbang"; 6 7 src = fetchzip { 8 url = "https://github.com/jbangdev/jbang/releases/download/v${version}/${pname}-${version}.tar"; 9 + sha256 = "sha256-81Le1xVftyQkt5Jm2JXRxID/ySNS1Tcl+BRIsDYeg1k="; 10 }; 11 12 nativeBuildInputs = [ makeWrapper ];
+2 -7
pkgs/development/tools/ocaml/ocaml-top/default.nix
··· 2 3 with ocamlPackages; buildDunePackage rec { 4 pname = "ocaml-top"; 5 - version = "1.2.0-rc"; 6 7 src = fetchFromGitHub { 8 owner = "OCamlPro"; 9 repo = "ocaml-top"; 10 rev = version; 11 - sha256 = "sha256-ZXnPnPvJmHshkTwYWeBojrgJYAF/R6vUo0XkvVMFSeQ="; 12 }; 13 14 nativeBuildInputs = [ ocp-build ]; ··· 17 configurePhase = '' 18 export TERM=xterm 19 ocp-build -init 20 - ''; 21 - 22 - postPatch = '' 23 - substituteInPlace src/completion.ml \ 24 - --replace 'LibIndex.load ' 'LibIndex.load ~qualify:false ' 25 ''; 26 27 meta = {
··· 2 3 with ocamlPackages; buildDunePackage rec { 4 pname = "ocaml-top"; 5 + version = "1.2.0"; 6 7 src = fetchFromGitHub { 8 owner = "OCamlPro"; 9 repo = "ocaml-top"; 10 rev = version; 11 + hash = "sha256-xmPGGB/zUpfeAxUIhR1PhfoESAJq7sTpqHuf++EH3Lw="; 12 }; 13 14 nativeBuildInputs = [ ocp-build ]; ··· 17 configurePhase = '' 18 export TERM=xterm 19 ocp-build -init 20 ''; 21 22 meta = {
+1 -1
pkgs/development/tools/parsing/tree-sitter/default.nix
··· 60 buildGrammar { 61 language = grammar.language or name; 62 inherit version; 63 - src = grammar.src or fetchGrammar grammar; 64 location = grammar.location or null; 65 }; 66 grammars' = import ./grammars { inherit lib; } // extraGrammars;
··· 60 buildGrammar { 61 language = grammar.language or name; 62 inherit version; 63 + src = grammar.src or (fetchGrammar grammar); 64 location = grammar.location or null; 65 }; 66 grammars' = import ./grammars { inherit lib; } // extraGrammars;
+2 -2
pkgs/os-specific/linux/ipset/default.nix
··· 2 3 stdenv.mkDerivation rec { 4 pname = "ipset"; 5 - version = "7.15"; 6 7 src = fetchurl { 8 url = "https://ipset.netfilter.org/${pname}-${version}.tar.bz2"; 9 - sha256 = "sha256-ClVFqq22QBQsH4iNNmp43fhyR5mWf6IGhqcAU71iF1E="; 10 }; 11 12 nativeBuildInputs = [ pkg-config ];
··· 2 3 stdenv.mkDerivation rec { 4 pname = "ipset"; 5 + version = "7.17"; 6 7 src = fetchurl { 8 url = "https://ipset.netfilter.org/${pname}-${version}.tar.bz2"; 9 + sha256 = "sha256-vknJ/0id1mEMrWVB50PDOE6slunyRwfaezkp2PKsZNg="; 10 }; 11 12 nativeBuildInputs = [ pkg-config ];
+1 -1
pkgs/servers/home-assistant/component-packages.nix
··· 2 # Do not edit! 3 4 { 5 - version = "2023.2.3"; 6 components = { 7 "3_day_blinds" = ps: with ps; [ 8 ];
··· 2 # Do not edit! 3 4 { 5 + version = "2023.2.4"; 6 components = { 7 "3_day_blinds" = ps: with ps; [ 8 ];
+2 -2
pkgs/servers/home-assistant/default.nix
··· 270 extraPackagesFile = writeText "home-assistant-packages" (lib.concatMapStringsSep "\n" (pkg: pkg.pname) extraBuildInputs); 271 272 # Don't forget to run parse-requirements.py after updating 273 - hassVersion = "2023.2.3"; 274 275 in python.pkgs.buildPythonApplication rec { 276 pname = "homeassistant"; ··· 288 owner = "home-assistant"; 289 repo = "core"; 290 rev = "refs/tags/${version}"; 291 - hash = "sha256-cRdxlmlgkKTnrtqGQPbSpBLHf+vfI9T6sdETcGshN9M="; 292 }; 293 294 nativeBuildInputs = with python3.pkgs; [
··· 270 extraPackagesFile = writeText "home-assistant-packages" (lib.concatMapStringsSep "\n" (pkg: pkg.pname) extraBuildInputs); 271 272 # Don't forget to run parse-requirements.py after updating 273 + hassVersion = "2023.2.4"; 274 275 in python.pkgs.buildPythonApplication rec { 276 pname = "homeassistant"; ··· 288 owner = "home-assistant"; 289 repo = "core"; 290 rev = "refs/tags/${version}"; 291 + hash = "sha256-Lt/t4S6To0MvdvmdKir7VytrNXPGhC7sMfjQmgox5XY="; 292 }; 293 294 nativeBuildInputs = with python3.pkgs; [
+3 -3
pkgs/servers/libreddit/default.nix
··· 8 9 rustPlatform.buildRustPackage rec { 10 pname = "libreddit"; 11 - version = "0.29.1"; 12 13 src = fetchFromGitHub { 14 owner = "libreddit"; 15 repo = pname; 16 rev = "refs/tags/v${version}"; 17 - hash = "sha256-W/vUOioZpA2UYPyJOVTGC1mek574m48NKQXG2o7emjU="; 18 }; 19 20 - cargoHash = "sha256-WrkUW9fV69RswS3qBMqBGxNBq6W4eJmJaTrEDp9byrM="; 21 22 buildInputs = lib.optionals stdenv.isDarwin [ 23 Security
··· 8 9 rustPlatform.buildRustPackage rec { 10 pname = "libreddit"; 11 + version = "0.29.2"; 12 13 src = fetchFromGitHub { 14 owner = "libreddit"; 15 repo = pname; 16 rev = "refs/tags/v${version}"; 17 + hash = "sha256-YCjH0K84sPgQ9MtA5IUHoGCxrAzRSu4KIuk2qPyhaM4="; 18 }; 19 20 + cargoHash = "sha256-VsQckZm8ySmbpn1uSgxWqZ+cc+NnUDNBmSsj4MHdQtk="; 21 22 buildInputs = lib.optionals stdenv.isDarwin [ 23 Security
+2 -2
pkgs/servers/monitoring/prometheus/artifactory-exporter.nix
··· 6 7 buildGoModule rec { 8 pname = "artifactory_exporter"; 9 - version = "1.11.0"; 10 rev = "v${version}"; 11 12 src = fetchFromGitHub { 13 owner = "peimanja"; 14 repo = pname; 15 rev = rev; 16 - hash = "sha256-dUAIPS2o+uvCGX32AgknynT0Mzzbq/7SeNmKN0Xc69o="; 17 }; 18 19 vendorHash = "sha256-5yzBKgjJCv4tgdBS6XmZUq1ebbka0LOuv6BARWO7kQg=";
··· 6 7 buildGoModule rec { 8 pname = "artifactory_exporter"; 9 + version = "1.12.0"; 10 rev = "v${version}"; 11 12 src = fetchFromGitHub { 13 owner = "peimanja"; 14 repo = pname; 15 rev = rev; 16 + hash = "sha256-EFjWDoWPePbPX9j4vuI41TAlGcFRlUyPpSvJriZdR0U="; 17 }; 18 19 vendorHash = "sha256-5yzBKgjJCv4tgdBS6XmZUq1ebbka0LOuv6BARWO7kQg=";
+3 -3
pkgs/servers/nosql/ferretdb/default.nix
··· 5 6 buildGoModule rec { 7 pname = "ferretdb"; 8 - version = "0.9.0"; 9 10 src = fetchFromGitHub { 11 owner = "FerretDB"; 12 repo = "FerretDB"; 13 rev = "v${version}"; 14 - sha256 = "sha256-+tmClWkW3uhBXuQzuSMJnzeA1rrkpLV0QLCzcKhbThw="; 15 }; 16 17 postPatch = '' ··· 19 echo nixpkgs > build/version/package.txt 20 ''; 21 22 - vendorSha256 = "sha256-43FxDRcif8FDHyXdNL/FJEt5ZnCQ8r7d5Red3l9442Q="; 23 24 CGO_ENABLED = 0; 25
··· 5 6 buildGoModule rec { 7 pname = "ferretdb"; 8 + version = "0.9.1"; 9 10 src = fetchFromGitHub { 11 owner = "FerretDB"; 12 repo = "FerretDB"; 13 rev = "v${version}"; 14 + sha256 = "sha256-iqoz7axU5U6MdRl8I2vS3Nh37XZZPI4bRb3oFxpQs6M="; 15 }; 16 17 postPatch = '' ··· 19 echo nixpkgs > build/version/package.txt 20 ''; 21 22 + vendorSha256 = "sha256-qtxR1vk/EZZmCRP1Z+EFObfMbQXKiRaSiI1Dsv268b8="; 23 24 CGO_ENABLED = 0; 25
+3 -3
pkgs/shells/hilbish/default.nix
··· 2 3 buildGoModule rec { 4 pname = "hilbish"; 5 - version = "2.0.1"; 6 7 src = fetchFromGitHub { 8 owner = "Rosettea"; 9 repo = "Hilbish"; 10 rev = "v${version}"; 11 - sha256 = "sha256-5GPJVusF3/WbEE5VH45Wyxq40wbNxgjO8QI2cLMpdN0="; 12 fetchSubmodules = true; 13 }; 14 15 subPackages = [ "." ]; 16 17 - vendorSha256 = "sha256-Kiy1JR3X++naY2XNLpnGujrNQt7qlL0zxv8E96cHmHo="; 18 19 ldflags = [ 20 "-s"
··· 2 3 buildGoModule rec { 4 pname = "hilbish"; 5 + version = "2.1.0"; 6 7 src = fetchFromGitHub { 8 owner = "Rosettea"; 9 repo = "Hilbish"; 10 rev = "v${version}"; 11 + sha256 = "sha256-iXDBo3bcmjsDy+iUREpg+sDTFN2LeF7jA+mg62LKeIs="; 12 fetchSubmodules = true; 13 }; 14 15 subPackages = [ "." ]; 16 17 + vendorHash = "sha256-Kiy1JR3X++naY2XNLpnGujrNQt7qlL0zxv8E96cHmHo="; 18 19 ldflags = [ 20 "-s"
+2 -2
pkgs/tools/admin/awscli2/default.nix
··· 25 in 26 with py.pkgs; buildPythonApplication rec { 27 pname = "awscli2"; 28 - version = "2.9.21"; # N.B: if you change this, check if overrides are still up-to-date 29 format = "pyproject"; 30 31 src = fetchFromGitHub { 32 owner = "aws"; 33 repo = "aws-cli"; 34 rev = version; 35 - hash = "sha256-/CMV6eCNm2gF9HhdoTo2TUUy7I4NF9Fb+6l2biGIbkE="; 36 }; 37 38 nativeBuildInputs = [
··· 25 in 26 with py.pkgs; buildPythonApplication rec { 27 pname = "awscli2"; 28 + version = "2.9.23"; # N.B: if you change this, check if overrides are still up-to-date 29 format = "pyproject"; 30 31 src = fetchFromGitHub { 32 owner = "aws"; 33 repo = "aws-cli"; 34 rev = version; 35 + hash = "sha256-OaZ8Eax8XE4xGs5yHh+1P8mwEfHkFNEtY6ZGLQc8Thk="; 36 }; 37 38 nativeBuildInputs = [
+3 -3
pkgs/tools/networking/xray/default.nix
··· 20 in 21 buildGoModule rec { 22 pname = "xray"; 23 - version = "1.7.2"; 24 25 src = fetchFromGitHub { 26 owner = "XTLS"; 27 repo = "Xray-core"; 28 rev = "v${version}"; 29 - sha256 = "sha256-jwCvo6+YXC471VqGWzcrnrLWOSJW2tBKa5SoynQg0Lo="; 30 }; 31 32 - vendorSha256 = "sha256-P2g0MqlBScm6yTnpvL5T6l9ntsb4tK9k3Civ7rTevrE="; 33 34 nativeBuildInputs = [ makeWrapper ]; 35
··· 20 in 21 buildGoModule rec { 22 pname = "xray"; 23 + version = "1.7.5"; 24 25 src = fetchFromGitHub { 26 owner = "XTLS"; 27 repo = "Xray-core"; 28 rev = "v${version}"; 29 + sha256 = "sha256-WCku/7eczcsGiIuTy0sSQKUKXlH14TpdVg2/ZPdaiHQ="; 30 }; 31 32 + vendorSha256 = "sha256-2P7fI7fUnShsAl95mPiJgtr/eobt+DMmaoxZcox0eu8="; 33 34 nativeBuildInputs = [ makeWrapper ]; 35
+3 -3
pkgs/tools/package-management/repro-get/default.nix
··· 9 10 buildGoModule rec { 11 pname = "repro-get"; 12 - version = "0.2.1"; 13 14 src = fetchFromGitHub { 15 owner = "reproducible-containers"; 16 repo = "repro-get"; 17 rev = "v${version}"; 18 - sha256 = "sha256-3cvKHwAyPYwR5VlhpPJH+3BK9Kw7dTGOPN1q2RnwsG0="; 19 }; 20 21 - vendorSha256 = "sha256-ebvtPc0QiP7fNiWYjd7iLG/4iH4DqWV/eaDHvmV/H3Y="; 22 23 nativeBuildInputs = [ installShellFiles ]; 24
··· 9 10 buildGoModule rec { 11 pname = "repro-get"; 12 + version = "0.3.0"; 13 14 src = fetchFromGitHub { 15 owner = "reproducible-containers"; 16 repo = "repro-get"; 17 rev = "v${version}"; 18 + sha256 = "sha256-2B4jNP58t+cfeHi5pICtB9+NwujRzkhl1d/cPkWlNrk="; 19 }; 20 21 + vendorHash = "sha256-GM8sKIZb2G9dBj2RoRO80hQrv8D+hHYo0O9FbBuK780="; 22 23 nativeBuildInputs = [ installShellFiles ]; 24
+4 -5
pkgs/top-level/all-packages.nix
··· 1911 git-town = callPackage ../applications/version-management/git-town { }; 1912 1913 git-trim = callPackage ../applications/version-management/git-trim { 1914 - inherit (darwin.apple_sdk.frameworks) Security; 1915 }; 1916 1917 git-up = callPackage ../applications/version-management/git-up { ··· 15017 recurseIntoAttrs (callPackage ../development/compilers/graalvm/community-edition { 15018 inherit (darwin.apple_sdk.frameworks) Foundation; 15019 }); 15020 graalvm11-ce = graalvmCEPackages.graalvm11-ce; 15021 graalvm17-ce = graalvmCEPackages.graalvm17-ce; 15022 - buildGraalvmNativeImage = callPackage ../build-support/build-graalvm-native-image { 15023 - graalvm = graalvm11-ce; 15024 - }; 15025 15026 openshot-qt = libsForQt5.callPackage ../applications/video/openshot-qt { }; 15027 ··· 19292 19293 cog = callPackage ../development/web/cog { }; 19294 19295 - cosmoc = callPackage ../development/tools/cosmoc { }; 19296 19297 cosmopolitan = callPackage ../development/libraries/cosmopolitan { }; 19298
··· 1911 git-town = callPackage ../applications/version-management/git-town { }; 1912 1913 git-trim = callPackage ../applications/version-management/git-trim { 1914 + inherit (darwin.apple_sdk_11_0.frameworks) IOKit CoreFoundation; 1915 }; 1916 1917 git-up = callPackage ../applications/version-management/git-up { ··· 15017 recurseIntoAttrs (callPackage ../development/compilers/graalvm/community-edition { 15018 inherit (darwin.apple_sdk.frameworks) Foundation; 15019 }); 15020 + graalvm-ce = graalvm11-ce; 15021 graalvm11-ce = graalvmCEPackages.graalvm11-ce; 15022 graalvm17-ce = graalvmCEPackages.graalvm17-ce; 15023 + buildGraalvmNativeImage = callPackage ../build-support/build-graalvm-native-image { }; 15024 15025 openshot-qt = libsForQt5.callPackage ../applications/video/openshot-qt { }; 15026 ··· 19291 19292 cog = callPackage ../development/web/cog { }; 19293 19294 + cosmocc = callPackage ../development/tools/cosmocc { }; 19295 19296 cosmopolitan = callPackage ../development/libraries/cosmopolitan { }; 19297
+2 -2
pkgs/top-level/python-packages.nix
··· 5464 5465 lightgbm = callPackage ../development/python-modules/lightgbm { }; 5466 5467 - lightning = callPackage ../development/python-modules/lightning { }; 5468 - 5469 lightning-utilities = callPackage ../development/python-modules/lightning-utilities { }; 5470 5471 lightparam = callPackage ../development/python-modules/lightparam { }; ··· 6197 myst-nb = callPackage ../development/python-modules/myst-nb { }; 6198 6199 myst-parser = callPackage ../development/python-modules/myst-parser { }; 6200 6201 nad-receiver = callPackage ../development/python-modules/nad-receiver { }; 6202
··· 5464 5465 lightgbm = callPackage ../development/python-modules/lightgbm { }; 5466 5467 lightning-utilities = callPackage ../development/python-modules/lightning-utilities { }; 5468 5469 lightparam = callPackage ../development/python-modules/lightparam { }; ··· 6195 myst-nb = callPackage ../development/python-modules/myst-nb { }; 6196 6197 myst-parser = callPackage ../development/python-modules/myst-parser { }; 6198 + 6199 + n3fit = callPackage ../development/python-modules/n3fit { }; 6200 6201 nad-receiver = callPackage ../development/python-modules/nad-receiver { }; 6202