From 9612fe5a887a44a0cabbb5889531d2837cae635c Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 22 Sep 2019 12:47:02 +0200 Subject: update-channel.sh -> update-nixpkgs.sh --- krebs/update-channel.sh | 9 --------- krebs/update-nixpkgs.sh | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) delete mode 100755 krebs/update-channel.sh create mode 100755 krebs/update-nixpkgs.sh diff --git a/krebs/update-channel.sh b/krebs/update-channel.sh deleted file mode 100755 index 08354357a..000000000 --- a/krebs/update-channel.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh -dir=$(dirname $0) -oldrev=$(cat $dir/nixpkgs.json | jq -r .rev | sed 's/\(.\{7\}\).*/\1/') -nix-shell -p nix-prefetch-git --run 'nix-prefetch-git \ - --url https://github.com/NixOS/nixpkgs-channels \ - --rev refs/heads/nixos-19.03' \ -> $dir/nixpkgs.json -newrev=$(cat $dir/nixpkgs.json | jq -r .rev | sed 's/\(.\{7\}\).*/\1/') -git commit $dir/nixpkgs.json -m "nixpkgs: $oldrev -> $newrev" diff --git a/krebs/update-nixpkgs.sh b/krebs/update-nixpkgs.sh new file mode 100755 index 000000000..08354357a --- /dev/null +++ b/krebs/update-nixpkgs.sh @@ -0,0 +1,9 @@ +#!/bin/sh +dir=$(dirname $0) +oldrev=$(cat $dir/nixpkgs.json | jq -r .rev | sed 's/\(.\{7\}\).*/\1/') +nix-shell -p nix-prefetch-git --run 'nix-prefetch-git \ + --url https://github.com/NixOS/nixpkgs-channels \ + --rev refs/heads/nixos-19.03' \ +> $dir/nixpkgs.json +newrev=$(cat $dir/nixpkgs.json | jq -r .rev | sed 's/\(.\{7\}\).*/\1/') +git commit $dir/nixpkgs.json -m "nixpkgs: $oldrev -> $newrev" -- cgit v1.2.3