From e6ab3878bd4307f86200ddf0bfbe415fbf09fb92 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Wed, 28 Oct 2020 21:53:37 -0400 Subject: rename nixos-pin --- nixos-pin | 20 -------------------- nixpkgs-pin | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 20 deletions(-) delete mode 100755 nixos-pin create mode 100755 nixpkgs-pin 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 " - echo "where 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 <" + echo "where 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 <