Skip to content

Commit 7e86e06

Browse files
committed
allow setting nixpkgs path via env var
1 parent 1f8942f commit 7e86e06

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

check-compatibilities.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
set -euo pipefail
33

44
versionsFile=changes-8e18c70.json
5-
nixpkgsPath=/path/to/nixpkgs
5+
nixpkgsPath=${NIXPKGS_PATH:-}
66
if [[ ! -e $nixpkgsPath ]]; then
7-
echo "Please set nixpkgsPath"
7+
echo "Please set NIXPKGS_PATH"
88
exit 1
99
fi
1010
if ! git -C "$nixpkgsPath" diff --quiet; then

get-revisions.rb

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@
33
require 'open3'
44
require 'json'
55

6-
NixpkgsPath = File.expand_path("/path/to/nixpkgs")
6+
NixpkgsPath = File.expand_path(ENV['NIXPKGS_PATH'] || (raise 'Please set NIXPKGS_PATH'))
77
# master as of 2021-10-25
88
StartRev = "8e18c70837aa01ade3718cd0fd35b649b3a2cf52"
99

10-
raise 'Please set NixpkgsPath' unless Dir.exist? NixpkgsPath
11-
1210
Change = Struct.new(:version, :drv, :date, :rev, :depth, keyword_init: true)
1311

1412
def find_versions(versions_to_find: 10, start_depth: 0, log: Log.new)

0 commit comments

Comments
 (0)