diff options
author | Kira Bruneau <kira.bruneau@pm.me> | 2023-03-23 15:30:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-23 15:30:28 -0400 |
commit | 4d7c292764ffce9e13f3df467ea72fb2357bf820 (patch) | |
tree | 20a9d93a0b93df44f0ac2451d79507feb30072eb | |
parent | c0bbc8c1b6a038e5b72d779e91384a4daa53d328 (diff) | |
parent | c685b5a98915360742c9c1398affd9538455eace (diff) |
Merge pull request #221014 from SuperSandro2000/fix-some-src-hashes
Fix some src hashes found while reviewing #220237
5 files changed, 15 insertions, 34 deletions
diff --git a/pkgs/applications/version-management/datalad/default.nix b/pkgs/applications/version-management/datalad/default.nix index cd2c26ea8d422..dfbb4e7db9e01 100644 --- a/pkgs/applications/version-management/datalad/default.nix +++ b/pkgs/applications/version-management/datalad/default.nix @@ -8,7 +8,7 @@ python3.pkgs.buildPythonApplication rec { owner = "datalad"; repo = pname; rev = version; - hash = "sha256-6uWOKsYeNZJ64WqoGHL7AsoK4iZd24TQOJ1ECw+K28Y="; + hash = "sha256-F5UFW0/XqntrHclpj3TqoAwuHJbiiv5a7/4MnFoJ1dE="; }; nativeBuildInputs = [ installShellFiles git ]; diff --git a/pkgs/applications/version-management/dvc/default.nix b/pkgs/applications/version-management/dvc/default.nix index f76f413ea661c..47cd6eb099c6f 100644 --- a/pkgs/applications/version-management/dvc/default.nix +++ b/pkgs/applications/version-management/dvc/default.nix @@ -17,7 +17,7 @@ python3.pkgs.buildPythonApplication rec { owner = "iterative"; repo = pname; rev = version; - hash = "sha256-2h+fy4KMxFrVtKJBtA1RmJDZv0OVm1BxO1akZzAw95Y="; + hash = "sha256-P0J+3TNHGqMw3krfs1uLnf8nEiIBK6UrrB37mY+fBA0="; }; postPatch = '' @@ -98,5 +98,6 @@ python3.pkgs.buildPythonApplication rec { homepage = "https://dvc.org"; license = licenses.asl20; maintainers = with maintainers; [ cmcdragonkai fab ]; + broken = true; # requires new python package: dvc-studio-client }; } diff --git a/pkgs/development/python-modules/annexremote/default.nix b/pkgs/development/python-modules/annexremote/default.nix index c38a32c81d192..46e937eb8dae5 100644 --- a/pkgs/development/python-modules/annexremote/default.nix +++ b/pkgs/development/python-modules/annexremote/default.nix @@ -18,7 +18,7 @@ buildPythonPackage rec { owner = "Lykos153"; repo = "AnnexRemote"; rev = "v${version}"; - sha256 = "08myswj1vqkl4s1glykq6xn76a070nv5mxj0z8ibl6axz89bvypi"; + sha256 = "sha256-h03gkRAMmOq35zzAq/OuctJwPAbP0Idu4Lmeu0RycDc="; }; nativeCheckInputs = [ diff --git a/pkgs/development/python-modules/debugpy/default.nix b/pkgs/development/python-modules/debugpy/default.nix index 95f2d8b21eefd..69097a585be60 100644 --- a/pkgs/development/python-modules/debugpy/default.nix +++ b/pkgs/development/python-modules/debugpy/default.nix @@ -2,6 +2,7 @@ , stdenv , buildPythonPackage , pythonOlder +, pythonAtLeast , fetchFromGitHub , fetchpatch , substituteAll @@ -22,13 +23,15 @@ buildPythonPackage rec { version = "1.6.6"; format = "setuptools"; - disabled = pythonOlder "3.7"; + # Currently doesn't support 3.11: + # https://github.com/microsoft/debugpy/issues/1107 + disabled = pythonOlder "3.7" || pythonAtLeast "3.11"; src = fetchFromGitHub { owner = "microsoft"; repo = "debugpy"; rev = "refs/tags/v${version}"; - hash = "sha256-GanRWzGyg0Efa+kuU7Q0IOmO0ohXZIjuz8RZYERTpzo="; + hash = "sha256-jEhvpPO3QeKjPiOMxg2xOWitWtZ6UCWyM1WvnbrKnFI="; }; patches = [ diff --git a/pkgs/development/tools/coursier/default.nix b/pkgs/development/tools/coursier/default.nix index 3374d4ee7fa01..af5edab074bf1 100644 --- a/pkgs/development/tools/coursier/default.nix +++ b/pkgs/development/tools/coursier/default.nix @@ -1,24 +1,12 @@ { lib, stdenv, fetchurl, makeWrapper, jre, writeScript, common-updater-scripts , coreutils, git, gnused, nix, nixfmt }: -let - version = "2.1.0-RC6"; - - zshCompletion = fetchurl { - url = - "https://raw.githubusercontent.com/coursier/coursier/v${version}/modules/cli/src/main/resources/completions/zsh"; - sha256 = "0afxzrk9w1qinfsz55jjrxydw0fcv6p722g1q955dl7f6xbab1jh"; - }; - - repo = "git@github.com:coursier/coursier.git"; -in stdenv.mkDerivation rec { - inherit version; - +stdenv.mkDerivation rec { pname = "coursier"; + version = "2.1.0-RC6"; src = fetchurl { - url = - "https://github.com/coursier/coursier/releases/download/v${version}/coursier"; + url = "https://github.com/coursier/coursier/releases/download/v${version}/coursier"; sha256 = "0b52qp0jb2bhb649r6cca0yd1cj8wsyp0f1j3pnmir6rizjwkm5q"; }; @@ -28,28 +16,18 @@ in stdenv.mkDerivation rec { install -Dm555 $src $out/bin/cs patchShebangs $out/bin/cs wrapProgram $out/bin/cs --prefix PATH ":" ${jre}/bin - - # copy zsh completion - install -Dm755 ${zshCompletion} $out/share/zsh/site-functions/_cs ''; passthru.updateScript = writeScript "update.sh" '' #!${stdenv.shell} set -o errexit - PATH=${ - lib.makeBinPath [ common-updater-scripts coreutils git gnused nix nixfmt ] - } + PATH=${lib.makeBinPath [ common-updater-scripts coreutils git gnused nix ]} oldVersion="$(nix-instantiate --eval -E "with import ./. {}; lib.getVersion ${pname}" | tr -d '"')" - latestTag="$(git -c 'versionsort.suffix=-' ls-remote --exit-code --refs --sort='version:refname' --tags ${repo} 'v*.*.*' | tail --lines=1 | cut --delimiter='/' --fields=3 | sed 's|^v||g')" + latestTag="$(git -c 'versionsort.suffix=-' ls-remote --exit-code --refs --sort='version:refname' --tags https://github.com/coursier/coursier.git 'v*.*.*' | tail --lines=1 | cut --delimiter='/' --fields=3 | sed 's|^v||g')" if [ "$oldVersion" != "$latestTag" ]; then nixpkgs="$(git rev-parse --show-toplevel)" default_nix="$nixpkgs/pkgs/development/tools/coursier/default.nix" update-source-version ${pname} "$latestTag" --version-key=version --print-changes - url="${builtins.head zshCompletion.urls}" - completion_url=$(echo $url | sed "s|$oldVersion|$latestTag|g") - completion_sha256="$(nix-prefetch-url --type sha256 $completion_url)" - sed -i "s|${zshCompletion.outputHash}|$completion_sha256|g" "$default_nix" - nixfmt "$default_nix" else echo "${pname} is already up-to-date" fi @@ -57,8 +35,7 @@ in stdenv.mkDerivation rec { meta = with lib; { homepage = "https://get-coursier.io/"; - description = - "A Scala library to fetch dependencies from Maven / Ivy repositories"; + description = "Scala library to fetch dependencies from Maven / Ivy repositories"; license = licenses.asl20; maintainers = with maintainers; [ adelbertc nequissimus ]; }; |