From a8e4bf7554dc7219b23c0ff076321f62c24b2b82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sat, 25 May 2019 15:11:11 +0200 Subject: Use Makefile for some env/deploy scripts --- scripts/make-env | 4 ++-- scripts/nix_env | 14 ++------------ scripts/nix_infos | 10 ---------- 3 files changed, 4 insertions(+), 24 deletions(-) delete mode 100755 scripts/nix_infos (limited to 'scripts') diff --git a/scripts/make-env b/scripts/make-env index 983a3590..25aa869a 100755 --- a/scripts/make-env +++ b/scripts/make-env @@ -2,11 +2,11 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" -source $DIR/nix_env +eval "$(make --no-print-directory -C $(dirname $DIR) nix-path)" nix-env -r -i -A myEnvironments.immae-eu -f "" "$@" result=$? cat >> $(dirname $DIR)/versions_log </dev/null 2>&1 && pwd )" - d=$(nix-build --no-out-link -E "with import { overlays = builtins.attrValues (import $(dirname $_DIR)/overlays); }; nixops") - ${d}/bin/nixops "$@" -} diff --git a/scripts/nix_infos b/scripts/nix_infos deleted file mode 100755 index 56e5b197..00000000 --- a/scripts/nix_infos +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" - -source $DIR/nix_env -version=$(nix eval --raw nixpkgs.lib.version) -mainversion=$(echo $version | cut -d"." -f -2) - -echo "https://releases.nixos.org/nixos/$mainversion/nixos-$version/nixexprs.tar.xz" -nix eval --raw nixpkgs.bc.meta.position | cut -d"/" -f-4 -- cgit v1.2.3