From 0bb33a2305624c18dc2f37cb2581bd1b844d6b07 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Mon, 6 May 2024 23:46:16 +0200 Subject: [PATCH 1/2] feat: make the script autonomous in its python dependencies Let's use a nix-shell shebang! Signed-off-by: Raito Bezarius --- update_pins.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/update_pins.py b/update_pins.py index 4f68b57..668808f 100755 --- a/update_pins.py +++ b/update_pins.py @@ -1,4 +1,5 @@ -#!/usr/bin/env python +#!/usr/bin/env nix-shell +#!nix-shell -i python3 -p 'python3.withPackages (ps: [ ps.requests ])' """ Updates pins in this repo to their latest version. From ef84a1e4b3b4bb216db804717c0375bf26990ace Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Mon, 6 May 2024 12:33:52 +0200 Subject: [PATCH 2/2] fix: allow fetching `nix-eval-jobs` anonymously Use HTTPS URL. Fixes #22. Signed-off-by: Raito Bezarius --- pins.json | 2 +- update_pins.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pins.json b/pins.json index 0e54d88..4805358 100644 --- a/pins.json +++ b/pins.json @@ -1 +1 @@ -{"nix-eval-jobs": {"kind": "git", "rev": "793841a9b7b689e37c9a7902710aab2bd6a833d5", "nar_hash": "sha256-hUYgXLE0+zOkGPXXwiVPYAZBQ5Es9OOkm800puk7a94=", "url": "git@git.lix.systems:lix-project/nix-eval-jobs", "ref": "main"}} \ No newline at end of file +{"nix-eval-jobs": {"kind": "tarball", "rev": "793841a9b7b689e37c9a7902710aab2bd6a833d5", "nar_hash": "sha256-hUYgXLE0+zOkGPXXwiVPYAZBQ5Es9OOkm800puk7a94=", "locked_url": "https://git.lix.systems/api/v1/repos/lix-project/nix-eval-jobs/archive/793841a9b7b689e37c9a7902710aab2bd6a833d5.tar.gz?rev=793841a9b7b689e37c9a7902710aab2bd6a833d5", "url": "https://git.lix.systems/lix-project/nix-eval-jobs/archive/main.tar.gz"}} \ No newline at end of file diff --git a/update_pins.py b/update_pins.py index 668808f..e037fc5 100755 --- a/update_pins.py +++ b/update_pins.py @@ -147,7 +147,7 @@ def lock_git(url, branch) -> GitPinSerialized: PINS = { 'nix-eval-jobs': - GitPinSpec('git@git.lix.systems:lix-project/nix-eval-jobs', 'main') + TarballPinSpec('https://git.lix.systems/lix-project/nix-eval-jobs/archive/main.tar.gz') }