This commit is contained in:
parent
94683e2876
commit
f556ff066f
@ -19,8 +19,8 @@ let
|
|||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "PathOfBuildingCommunity";
|
owner = "PathOfBuildingCommunity";
|
||||||
repo = "PathOfBuilding";
|
repo = "PathOfBuilding";
|
||||||
rev = "520e4aea9583ce33bf2c1494fc1b5dc128696797";
|
rev = "b28c9cd74b664a9af3fb8d72416afebe140b350a";
|
||||||
hash = "sha256-E7UgJpsC0YnqG2KbZYxbYRDPoZ2+NfyYCn4fK+QN5WM=";
|
hash = "sha256-fxpxuS64MpHJrq1tqrhZFKF0wz7phyijLIHEuxzUfa0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ unzip ];
|
nativeBuildInputs = [ unzip ];
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
set -x
|
||||||
|
|
||||||
# TODO: Update pobfrontend as well?
|
# TODO: Update pobfrontend as well?
|
||||||
|
|
||||||
@ -14,8 +15,12 @@ hash=$(jq '.args.hash' <<< "$nurl_output")
|
|||||||
echo "Updating pob to $rev"
|
echo "Updating pob to $rev"
|
||||||
|
|
||||||
# Find lines to replace
|
# Find lines to replace
|
||||||
line_numbers=$(grep -Fn "rev =" packages/pob.nix| cut -d":" -f1)
|
rev_line_numbers=$(grep -Fn "rev =" packages/pob.nix| cut -d":" -f1)
|
||||||
line_data=$(head -n1 <<< "$line_numbers")
|
rev_line_data=$(head -n1 <<< "$rev_line_numbers")
|
||||||
|
sed -i "${rev_line_data}s/.*/ rev = $rev;/" packages/pob.nix
|
||||||
|
|
||||||
|
hash_line_numbers=$(grep -Fn "hash =" packages/pob.nix| cut -d":" -f1)
|
||||||
|
hash_line_data=$(head -n1 <<< "$hash_line_numbers")
|
||||||
|
sed -i "${hash_line_data}s/.*/ hash = $hash;/" packages/pob.nix
|
||||||
|
|
||||||
sed -i "${line_data}s/.*/ rev = $rev;/" packages/pob.nix
|
|
||||||
nixfmt packages/pob.nix
|
nixfmt packages/pob.nix
|
||||||
|
Loading…
Reference in New Issue
Block a user