diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2024-06-24 15:54:36 +0200 |
---|---|---|
committer | Yaya <github@uwu.is> | 2024-06-26 11:55:39 +0200 |
commit | 4b72e3cf0c6b6561f6b3c600c2d6c46370cceb8e (patch) | |
tree | 5e0aea688b068f6d7addf24b5b161b0f5595af2e /pkgs/applications | |
parent | 1ecc3cd35bf1550997be0e0a6d3854093cca95bb (diff) |
gitlab: replace universal-prefetch-url with nix-prefetch-url
It's even less code... Co-Authored-By: Yaya <github@uwu.is>
Diffstat (limited to 'pkgs/applications')
-rwxr-xr-x | pkgs/applications/version-management/gitlab/update.py | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/pkgs/applications/version-management/gitlab/update.py b/pkgs/applications/version-management/gitlab/update.py index 195fce350c28a..bb46af27c690c 100755 --- a/pkgs/applications/version-management/gitlab/update.py +++ b/pkgs/applications/version-management/gitlab/update.py @@ -1,5 +1,5 @@ #!/usr/bin/env nix-shell -#! nix-shell -I nixpkgs=../../../.. -i python3 -p bundix bundler nix-update nix nix-universal-prefetch python3 python3Packages.requests python3Packages.click python3Packages.click-log python3Packages.packaging prefetch-yarn-deps git +#! nix-shell -I nixpkgs=../../../.. -i python3 -p bundix bundler nix-update nix python3 python3Packages.requests python3Packages.click python3Packages.click-log python3Packages.packaging prefetch-yarn-deps git import click import click_log @@ -49,19 +49,13 @@ class GitLabRepo: reverse=True, ) return versions - def get_git_hash(self, rev: str): return ( subprocess.check_output( [ - "nix-universal-prefetch", - "fetchFromGitLab", - "--owner", - self.owner, - "--repo", - self.repo, - "--rev", - rev, + "nix-prefetch-url", + "--unpack", + f"https://gitlab.com/{self.owner}/{self.repo}/-/archive/{rev}/{self.repo}-{rev}.tar.gz", ] ) .decode("utf-8") |