updated uv

This commit is contained in:
Jakub Kropáček 2024-12-12 09:38:01 +01:00
parent 54f967505e
commit f1f705de7c
3 changed files with 22 additions and 20 deletions

View file

@ -27,11 +27,11 @@
]
},
"locked": {
"lastModified": 1733873195,
"narHash": "sha256-dTosiZ3sZ/NKoLKQ++v8nZdEHya0eTNEsaizNp+MUPM=",
"lastModified": 1733951607,
"narHash": "sha256-CN6q6iCzxI1gkNyk4xLdwaMKi10r7n+aJkRzWj8PXwQ=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "f26aa4b76fb7606127032d33ac73d7d507d82758",
"rev": "6e5b2d9e8014b5572e3367937a329e7053458d34",
"type": "github"
},
"original": {

View file

@ -7,11 +7,11 @@
}:
stdenv.mkDerivation rec {
pname = "uv-bin";
version = "0.5.6";
version = "0.5.8";
src = fetchTarball {
url = "https://github.com/astral-sh/uv/releases/download/${version}/uv-x86_64-unknown-linux-gnu.tar.gz";
sha256 = "1xh8r00a1zrafil105x9bhlhnniawqh9hmb5pv1y2amn1m1gpqbf";
sha256 = "1akyn28x8hgyi9l588vcscs7z72g8zhgia1h2jr5d3rrjdnxssrh";
};
nativeBuildInputs = [

View file

@ -21,22 +21,24 @@ def main() -> int:
built_packages_paths = []
for package in packages.get("x86_64-linux").keys():
out_path = (
sp.check_output(
[
shutil.which("nix"),
"build",
f".#{package}",
"--no-link",
"--print-out-paths",
]
try:
out_path = (
sp.check_output(
[
shutil.which("nix"),
"build",
f".#{package}",
"--no-link",
"--print-out-paths",
],
)
.decode("utf-8")
.strip()
)
.decode("utf-8")
.strip()
)
built_packages_paths.append(out_path)
print("\n".join(built_packages_paths))
built_packages_paths.append(out_path)
print("\n".join(built_packages_paths))
except sp.CalledProcessError as err:
print(f"Failed building package {package}")
return 0