diff options
Diffstat (limited to 'nixos-pin')
-rwxr-xr-x | nixos-pin | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/nixos-pin b/nixos-pin deleted file mode 100755 index 7ff2c6a..0000000 --- a/nixos-pin +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -function usage { - echo "usage: nixos-pin <hash>" - echo "where <hash> is a git sha from the nixpkgs repo" - exit 1 -} - -[[ -z $1 ]] && usage - -url="https://github.com/NixOS/nixpkgs/archive/$1.tar.gz" -hash=$(nix-prefetch-url --unpack $url) - -cat <<EOF -# generated with ~/bin/nixos-pin -{ - url = "$url"; - sha256 = "$hash"; -} -EOF |