lol

Merge master into staging-next

authored by

github-actions[bot] and committed by
GitHub
7a06ced9 636447bb

+277 -65
+2 -2
pkgs/applications/audio/ptcollab/default.nix
··· 13 13 14 14 mkDerivation rec { 15 15 pname = "ptcollab"; 16 - version = "0.6.2.0"; 16 + version = "0.6.3.0"; 17 17 18 18 src = fetchFromGitHub { 19 19 owner = "yuxshao"; 20 20 repo = "ptcollab"; 21 21 rev = "v${version}"; 22 - sha256 = "sha256-iSCuFCwOPrvff9N/a2J0kPrxikhyR7yYbD4VaU/TF4M="; 22 + sha256 = "sha256-fxFT3wgFHd2YbwUTna5PTvaCcCAaDXGLbqKz6nVrsKI="; 23 23 }; 24 24 25 25 nativeBuildInputs = [ qmake pkg-config ];
+5 -4
pkgs/applications/editors/vscode/extensions/rescript/default.nix
··· 1 1 { lib, stdenv, vscode-utils, callPackage }: 2 2 let 3 - rescript-editor-analysis = (callPackage ./rescript-editor-analysis.nix { }); 3 + version = "1.6.0"; 4 + rescript-editor-analysis = callPackage ./rescript-editor-analysis.nix { inherit version; }; 4 5 arch = 5 6 if stdenv.isLinux then "linux" 6 7 else if stdenv.isDarwin then "darwin" ··· 11 12 mktplcRef = { 12 13 name = "rescript-vscode"; 13 14 publisher = "chenglou92"; 14 - version = "1.3.0"; 15 - sha256 = "sha256-Sgi7FFOpI/XOeyPOrDhwZdZ+43ilUz7oQ49yB7tiMXk="; 15 + inherit version; 16 + sha256 = "sha256-/Nv+uyTkJQVaPKIDRr1P/Z5vsituXpP48/sDn3FUEeA="; 16 17 }; 17 18 postPatch = '' 18 19 rm -r ${analysisDir} ··· 22 23 meta = with lib; { 23 24 description = "The official VSCode plugin for ReScript"; 24 25 homepage = "https://github.com/rescript-lang/rescript-vscode"; 25 - maintainers = with maintainers; [ dlip ]; 26 + maintainers = with maintainers; [ dlip jayesh-bhoot ]; 26 27 license = licenses.mit; 27 28 }; 28 29 }
+10 -7
pkgs/applications/editors/vscode/extensions/rescript/rescript-editor-analysis.nix
··· 1 - { lib, stdenv, fetchFromGitHub, bash, ocaml }: 1 + { lib, stdenv, fetchFromGitHub, bash, ocaml, dune_3, version }: 2 2 3 3 stdenv.mkDerivation { 4 4 pname = "rescript-editor-analysis"; 5 - version = "1.1.3"; 5 + inherit version; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "rescript-lang"; 9 9 repo = "rescript-vscode"; 10 - rev = "8d0412a72307b220b7f5774e2612760a2d429059"; 11 - sha256 = "rHQtfuIiEWlSPuZvNpEafsvlXCj2Uv1YRR1IfvKfC2s="; 10 + rev = version; 11 + sha256 = "sha256-O5kZCnhtMcevPTs5UxhIXx124WQf1VvF2WMVHjMEQZc="; 12 12 }; 13 13 14 - nativeBuildInputs = [ ocaml ]; 14 + nativeBuildInputs = [ ocaml dune_3 ]; 15 15 16 + # Skip testing phases because they need to download and install node modules 16 17 postPatch = '' 17 18 cd analysis 18 - substituteInPlace Makefile --replace "/bin/bash" "${bash}/bin/bash" 19 + substituteInPlace Makefile \ 20 + --replace "build: build-analysis-binary build-reanalyze build-tests" "build: build-analysis-binary" \ 21 + --replace "test: test-analysis-binary test-reanalyze" "test: test-analysis-binary" 19 22 ''; 20 23 21 24 installPhase = '' ··· 25 28 meta = with lib; { 26 29 description = "Analysis binary for the ReScript VSCode plugin"; 27 30 homepage = "https://github.com/rescript-lang/rescript-vscode"; 28 - maintainers = with maintainers; [ dlip ]; 31 + maintainers = with maintainers; [ dlip jayesh-bhoot ]; 29 32 license = licenses.mit; 30 33 }; 31 34 }
+3 -3
pkgs/applications/networking/cluster/atmos/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "atmos"; 5 - version = "1.8.0"; 5 + version = "1.8.2"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "cloudposse"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-Jt8/sB6cpxNr0Mcp0+KrwxQAicOHHRGnHXLruBSvZ4M="; 11 + sha256 = "sha256-rDbnny/qRU31ciAXKLGLXS3FhgOpxmkLT4oatYCbt9g="; 12 12 }; 13 13 14 - vendorSha256 = "sha256-d2Eod1AK6Ei5Az9wPHVqij8K4CVj7Ptewd3dBJ9Wt3o="; 14 + vendorSha256 = "sha256-Kfv3RlH80E/9yf/rvnY5vljaRr4cH5AhgXQn54x72Ds="; 15 15 16 16 ldflags = [ "-s" "-w" "-X github.com/cloudposse/atmos/cmd.Version=v${version}" ]; 17 17
+24 -6
pkgs/applications/networking/cluster/kubebuilder/default.nix
··· 5 5 , git 6 6 , go 7 7 , gnumake 8 + , installShellFiles 9 + , testers 10 + , kubebuilder 8 11 }: 9 12 10 13 buildGoModule rec { ··· 17 20 rev = "v${version}"; 18 21 sha256 = "sha256-nLjmz9OakBLTBWdYA6czgtJmCuP96abNwLcLZo+yZ48="; 19 22 }; 23 + 20 24 vendorSha256 = "sha256-xljLDwubwr6rZ/ZpW9/WithClaMo88ivlBhWFb0iAvo="; 21 25 22 26 subPackages = ["cmd"]; 23 27 28 + allowGoReference = true; 29 + 24 30 ldflags = [ 25 31 "-X main.kubeBuilderVersion=v${version}" 26 32 "-X main.goos=${go.GOOS}" 27 33 "-X main.goarch=${go.GOARCH}" 28 - "-X main.gitCommit=v${version}" 29 - "-X main.buildDate=v${version}" 34 + "-X main.gitCommit=unknown" 35 + "-X main.buildDate=unknown" 30 36 ]; 31 37 32 - doCheck = true; 38 + nativeBuildInputs = [ 39 + makeWrapper 40 + git 41 + installShellFiles 42 + ]; 33 43 34 44 postInstall = '' 35 45 mv $out/bin/cmd $out/bin/kubebuilder 36 46 wrapProgram $out/bin/kubebuilder \ 37 47 --prefix PATH : ${lib.makeBinPath [ go gnumake ]} 48 + 49 + installShellCompletion --cmd kubebuilder \ 50 + --bash <($out/bin/kubebuilder completion bash) \ 51 + --fish <($out/bin/kubebuilder completion fish) \ 52 + --zsh <($out/bin/kubebuilder completion zsh) 38 53 ''; 39 54 40 - allowGoReference = true; 41 - nativeBuildInputs = [ makeWrapper git ]; 55 + passthru.tests.version = testers.testVersion { 56 + command = "${kubebuilder}/bin/kubebuilder version"; 57 + package = kubebuilder; 58 + version = "v${version}"; 59 + }; 42 60 43 61 meta = with lib; { 62 + description = "SDK for building Kubernetes APIs using CRDs"; 44 63 homepage = "https://github.com/kubernetes-sigs/kubebuilder"; 45 - description = "SDK for building Kubernetes APIs using CRDs"; 46 64 license = licenses.asl20; 47 65 maintainers = with maintainers; [ cmars ]; 48 66 };
+2 -2
pkgs/applications/version-management/got/default.nix
··· 4 4 5 5 stdenv.mkDerivation rec { 6 6 pname = "got"; 7 - version = "0.75.1"; 7 + version = "0.76"; 8 8 9 9 src = fetchurl { 10 10 url = "https://gameoftrees.org/releases/portable/got-portable-${version}.tar.gz"; 11 - sha256 = "sha256-GlEXB89fZPRZAwvUUHcyKCH3Jj5AOvMSHFodsVKepSQ="; 11 + sha256 = "sha256-05VUIHUqXnES4CmgopzQ2LQ0uldSffsGF5ExedEO+yA="; 12 12 }; 13 13 14 14 nativeBuildInputs = [ pkg-config bison ];
+111
pkgs/build-support/portable-service/default.nix
··· 1 + { pkgs, lib, stdenv }: 2 + /* 3 + Create a systemd portable service image 4 + https://systemd.io/PORTABLE_SERVICES/ 5 + 6 + Example: 7 + pkgs.portableService { 8 + pname = "demo"; 9 + version = "1.0"; 10 + units = [ demo-service demo-socket ]; 11 + } 12 + */ 13 + { 14 + # The name and version of the portable service. The resulting image will be 15 + # created in result/$pname_$version.raw 16 + pname 17 + , version 18 + 19 + # Units is a list of derivations for systemd unit files. Those files will be 20 + # copied to /etc/systemd/system in the resulting image. Note that the unit 21 + # names must be prefixed with the name of the portable service. 22 + , units 23 + 24 + # Basic info about the portable service image, used for the generated 25 + # /etc/os-release 26 + , description ? null 27 + , homepage ? null 28 + 29 + # A list of attribute sets {object, symlink}. Symlinks will be created 30 + # in the root filesystem of the image to objects in the nix store. 31 + , symlinks ? [ ] 32 + 33 + # A list of additional derivations to be included in the image as-is. 34 + , contents ? [ ] 35 + 36 + # mksquashfs options 37 + , squashfsTools ? pkgs.squashfsTools 38 + , squash-compression ? "xz -Xdict-size 100%" 39 + , squash-block-size ? "1M" 40 + }: 41 + 42 + let 43 + filterNull = lib.filterAttrs (_: v: v != null); 44 + envFileGenerator = lib.generators.toKeyValue { }; 45 + 46 + rootFsScaffold = 47 + let 48 + os-release-params = { 49 + PORTABLE_ID = pname; 50 + PORTABLE_PRETTY_NAME = description; 51 + HOME_URL = homepage; 52 + ID = "nixos"; 53 + PRETTY_NAME = "NixOS"; 54 + BUILD_ID = "rolling"; 55 + }; 56 + os-release = pkgs.writeText "os-release" 57 + (envFileGenerator (filterNull os-release-params)); 58 + 59 + in 60 + stdenv.mkDerivation { 61 + pname = "root-fs-scaffold"; 62 + inherit version; 63 + 64 + buildCommand = '' 65 + # scaffold a file system layout 66 + mkdir -p $out/etc/systemd/system $out/proc $out/sys $out/dev $out/run \ 67 + $out/tmp $out/var/tmp $out/var/lib $out/var/cache $out/var/log 68 + 69 + # empty files to mount over with host's version 70 + touch $out/etc/resolv.conf $out/etc/machine-id 71 + 72 + # required for portable services 73 + cp ${os-release} $out/etc/os-release 74 + '' 75 + # units **must** be copied to /etc/systemd/system/ 76 + + (lib.concatMapStringsSep "\n" (u: "cp ${u} $out/etc/systemd/system/${u.name};") units) 77 + + (lib.concatMapStringsSep "\n" 78 + ({ object, symlink }: '' 79 + mkdir -p $(dirname $out/${symlink}); 80 + ln -s ${object} $out/${symlink}; 81 + '') 82 + symlinks) 83 + ; 84 + }; 85 + in 86 + 87 + assert lib.assertMsg (lib.all (u: lib.hasPrefix pname u.name) units) "Unit names must be prefixed with the service name"; 88 + 89 + stdenv.mkDerivation { 90 + pname = "${pname}-img"; 91 + inherit version; 92 + 93 + nativeBuildInputs = [ squashfsTools ]; 94 + closureInfo = pkgs.closureInfo { rootPaths = [ rootFsScaffold ] ++ contents; }; 95 + 96 + buildCommand = '' 97 + mkdir -p nix/store 98 + for i in $(< $closureInfo/store-paths); do 99 + cp -a "$i" "''${i:1}" 100 + done 101 + 102 + mkdir -p $out 103 + # the '.raw' suffix is mandatory by the portable service spec 104 + mksquashfs nix ${rootFsScaffold}/* $out/"${pname}_${version}.raw" \ 105 + -quiet -noappend \ 106 + -exit-on-error \ 107 + -keep-as-directory \ 108 + -all-root -root-mode 755 \ 109 + -b ${squash-block-size} -comp ${squash-compression} 110 + ''; 111 + }
+59 -26
pkgs/development/coq-modules/mathcomp-analysis/default.nix
··· 1 - { coq, mkCoqDerivation, mathcomp, mathcomp-finmap, mathcomp-bigenough, mathcomp-real-closed, 2 - hierarchy-builder, lib, version ? null }: 3 - 4 - with lib; 5 - let mca = mkCoqDerivation { 6 - 7 - namePrefix = [ "coq" "mathcomp" ]; 8 - pname = "analysis"; 1 + { lib, 2 + mkCoqDerivation, recurseIntoAttrs, 3 + mathcomp, mathcomp-finmap, mathcomp-bigenough, mathcomp-real-closed, 4 + hierarchy-builder, 5 + coqPackages, coq, version ? null }@args: 6 + with builtins // lib; 7 + let 8 + repo = "math-comp"; 9 9 owner = "math-comp"; 10 10 11 11 release."0.5.3".sha256 = "sha256-1NjFsi5TITF8ZWx1NyppRmi8g6YaoUtTdS9bU/sUe5k="; ··· 20 20 release."0.3.1".sha256 = "1iad288yvrjv8ahl9v18vfblgqb1l5z6ax644w49w9hwxs93f2k8"; 21 21 release."0.2.3".sha256 = "0p9mr8g1qma6h10qf7014dv98ln90dfkwn76ynagpww7qap8s966"; 22 22 23 - inherit version; 24 23 defaultVersion = with versions; switch [ coq.version mathcomp.version ] [ 25 24 { cases = [ (isGe "8.14") (isGe "1.13.0") ]; out = "0.5.3"; } 26 25 { cases = [ (isGe "8.14") (range "1.13" "1.15") ]; out = "0.5.2"; } ··· 33 32 { cases = [ (range "8.8" "8.11") (range "1.8" "1.10") ]; out = "0.2.3"; } 34 33 ] null; 35 34 36 - propagatedBuildInputs = 37 - [ mathcomp.ssreflect mathcomp.field 38 - mathcomp-finmap mathcomp-bigenough mathcomp-real-closed ]; 35 + # list of analysis packages sorted by dependency order 36 + packages = [ "classical" "analysis" ]; 37 + 38 + mathcomp_ = package: let 39 + analysis-deps = map mathcomp_ (head (splitList (pred.equal package) packages)); 40 + pkgpath = if package == "analysis" then "theories" else "${package}"; 41 + pname = "mathcomp-${package}"; 42 + derivation = mkCoqDerivation ({ 43 + inherit version pname defaultVersion release repo owner; 44 + 45 + namePrefix = [ "coq" "mathcomp" ]; 46 + 47 + propagatedBuildInputs = 48 + (if package == "classical" then 49 + [ mathcomp.ssreflect mathcomp.algebra mathcomp-finmap ] 50 + else 51 + [ mathcomp.field mathcomp-bigenough mathcomp-real-closed ]) 52 + ++ [ analysis-deps ]; 53 + 54 + preBuild = '' 55 + cd ${pkgpath} 56 + ''; 57 + 58 + meta = { 59 + description = "Analysis library compatible with Mathematical Components"; 60 + maintainers = [ maintainers.cohencyril ]; 61 + license = licenses.cecill-c; 62 + }; 39 63 40 - meta = { 41 - description = "Analysis library compatible with Mathematical Components"; 42 - maintainers = [ maintainers.cohencyril ]; 43 - license = licenses.cecill-c; 44 - }; 45 - }; in 46 - mca.overrideAttrs (o: 47 - let ext = { propagatedBuildInputs = o.propagatedBuildInputs 48 - ++ [ hierarchy-builder ]; }; 49 - in with versions; switch o.version [ 50 - {case = "dev"; out = ext;} 51 - {case = isGe "0.3.4"; out = ext;} 52 - ] {} 53 - ) 64 + passthru = genAttrs packages mathcomp_; 65 + }); 66 + # split packages didn't exist before 0.6, so bulding nothing in that case 67 + patched-derivation1 = derivation.overrideAttrs (o: 68 + optionalAttrs (o.pname != null && o.pname != "mathcomp-analysis" && 69 + o.version != null && o.version != "dev" && versions.isLt "0.6" o.version) 70 + { preBuild = ""; buildPhase = "echo doing nothing"; installPhase = "echo doing nothing"; } 71 + ); 72 + patched-derivation2 = patched-derivation1.overrideAttrs (o: 73 + optionalAttrs (o.pname != null && o.pname == "mathcomp-analysis" && 74 + o.version != null && o.version != "dev" && versions.isLt "0.6" o.version) 75 + { preBuild = ""; } 76 + ); 77 + patched-derivation = patched-derivation2.overrideAttrs (o: 78 + optionalAttrs (o.version != null 79 + && (o.version == "dev" || versions.isGe "0.3.4" o.version)) 80 + { 81 + propagatedBuildInputs = o.propagatedBuildInputs ++ [ hierarchy-builder ]; 82 + } 83 + ); 84 + in patched-derivation; 85 + in 86 + mathcomp_ "analysis"
+2 -2
pkgs/development/python-modules/pypdf2/default.nix
··· 9 9 10 10 buildPythonPackage rec { 11 11 pname = "PyPDF2"; 12 - version = "2.10.9"; 12 + version = "2.11.0"; 13 13 14 14 src = fetchPypi { 15 15 inherit pname version; 16 - sha256 = "sha256-8tpSVPBU6O+BDFMf4Rr28KQ2or4VmF7g0oho2GmOWj8="; 16 + sha256 = "sha256-2IF2H2xjEJqFkJPJHckKFdAf816s3rkoCTYLliPiw8k="; 17 17 }; 18 18 19 19 LC_ALL = "en_US.UTF-8";
+16 -11
pkgs/development/tools/nil/default.nix
··· 1 - { lib, rustPlatform, fetchFromGitHub }: 2 - 3 - let 4 - date = "2022-09-19"; 5 - in 1 + { lib, rustPlatform, fetchFromGitHub, nix, nix-update-script }: 6 2 7 3 rustPlatform.buildRustPackage rec { 8 4 pname = "nil"; 9 - version = "unstable-${date}"; 5 + version = "2022-09-26"; 10 6 11 7 src = fetchFromGitHub { 12 8 owner = "oxalica"; 13 9 repo = pname; 14 - rev = date; 15 - sha256 = "sha256-WdBRfp0shz6Xhwx0fEUQwROK52XNDTkmhC2xkdT+INA="; 10 + rev = version; 11 + hash = "sha256-2bcAXcJiFV+xKSIy3oD2/TkijV4302jAtTF3xtHiOhU="; 16 12 }; 17 13 18 - cargoSha256 = "sha256-J1CRe5xPl428mwOO4kDxLyPBc0mtzl3iU4mUqW5d4+E="; 14 + cargoHash = "sha256-RL9n2kfWPpu17qudqSx5DkZbgxqVCf2IRBu/koCAqFA="; 15 + 16 + CFG_DATE = version; 17 + CFG_REV = "release"; 18 + 19 + nativeBuildInputs = [ 20 + (lib.getBin nix) 21 + ]; 19 22 20 - CFG_DATE = date; 23 + passthru.updateScript = nix-update-script { 24 + attrPath = pname; 25 + }; 21 26 22 27 meta = with lib; { 23 - description = "A language server for Nix Expression Language"; 28 + description = "Yet another language server for Nix"; 24 29 homepage = "https://github.com/oxalica/nil"; 25 30 license = with licenses; [ mit asl20 ]; 26 31 maintainers = with maintainers; [ figsoda oxalica ];
+33
pkgs/development/tools/ruff/default.nix
··· 1 + { lib 2 + , rustPlatform 3 + , fetchFromGitHub 4 + , stdenv 5 + , CoreServices 6 + , Security 7 + }: 8 + 9 + rustPlatform.buildRustPackage rec { 10 + pname = "ruff"; 11 + version = "0.0.46"; 12 + 13 + src = fetchFromGitHub { 14 + owner = "charliermarsh"; 15 + repo = pname; 16 + rev = "v${version}"; 17 + sha256 = "10khkcv2bjsxkwn18vkm025v2qxdiymy8gmky09xz37s51bysvlh"; 18 + }; 19 + 20 + cargoSha256 = "sha256-i0fQ8oEbZen9LD1dccXc4pczBMadP1/fk1cwaNKvVYQ="; 21 + 22 + buildInputs = lib.optionals stdenv.isDarwin [ 23 + CoreServices 24 + Security 25 + ]; 26 + 27 + meta = with lib; { 28 + description = "An extremely fast Python linter"; 29 + homepage = "https://github.com/charliermarsh/ruff"; 30 + license = licenses.mit; 31 + maintainers = with maintainers; [ figsoda ]; 32 + }; 33 + }
+1
pkgs/tools/admin/awscli/default.nix
··· 90 90 homepage = "https://aws.amazon.com/cli/"; 91 91 description = "Unified tool to manage your AWS services"; 92 92 license = licenses.asl20; 93 + mainProgram = "aws"; 93 94 maintainers = with maintainers; [ ]; 94 95 }; 95 96 }
+2 -2
pkgs/tools/misc/plantuml/default.nix
··· 1 1 { lib, stdenv, fetchurl, makeWrapper, jre, graphviz }: 2 2 3 3 stdenv.mkDerivation rec { 4 - version = "1.2022.7"; 4 + version = "1.2022.8"; 5 5 pname = "plantuml"; 6 6 7 7 src = fetchurl { 8 8 url = "https://github.com/plantuml/plantuml/releases/download/v${version}/plantuml-pdf-${version}.jar"; 9 - sha256 = "sha256-GnFueIK4RDGViHmyBtfQqNpId+4ufCsci7c1YCcZjAQ="; 9 + sha256 = "sha256-9K9d7dQnMFTq1zpZU2t0NIhzQVIyk8b6PnI0cRJJ5t0="; 10 10 }; 11 11 12 12 nativeBuildInputs = [ makeWrapper ];
+6
pkgs/top-level/all-packages.nix
··· 17009 17009 }; 17010 17010 })); 17011 17011 17012 + portableService = callPackage ../build-support/portable-service { }; 17013 + 17012 17014 polar = callPackage ../tools/misc/polar { }; 17013 17015 17014 17016 inherit (nodePackages) postcss-cli; ··· 36228 36230 robo3t = callPackage ../applications/misc/robo3t { }; 36229 36231 36230 36232 rucksack = callPackage ../development/tools/rucksack { }; 36233 + 36234 + ruff = callPackage ../development/tools/ruff { 36235 + inherit (darwin.apple_sdk.frameworks) CoreServices Security; 36236 + }; 36231 36237 36232 36238 sam-ba = callPackage ../tools/misc/sam-ba { }; 36233 36239
+1
pkgs/top-level/coq-packages.nix
··· 75 75 mathcomp-character = self.mathcomp.character; 76 76 mathcomp-abel = callPackage ../development/coq-modules/mathcomp-abel {}; 77 77 mathcomp-analysis = callPackage ../development/coq-modules/mathcomp-analysis {}; 78 + mathcomp-classical = self.mathcomp-analysis.classical; 78 79 mathcomp-finmap = callPackage ../development/coq-modules/mathcomp-finmap {}; 79 80 mathcomp-bigenough = callPackage ../development/coq-modules/mathcomp-bigenough {}; 80 81 mathcomp-real-closed = callPackage ../development/coq-modules/mathcomp-real-closed {};