From adba030111af3de18c9ad41b5ee389b140811fbb Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 1 Dec 2020 21:15:47 -0500 Subject: nix shebangs, consider --- nixEnv/shells/shell-dmd-verNix.nix | 1 + nixEnv/shells/shell-dmd-verUser.nix | 1 + nixEnv/shells/shell-ldc-verNix.nix | 11 +++++++++-- nixEnv/shells/shell-ldc-verUser.nix | 11 +++++++++-- 4 files changed, 20 insertions(+), 4 deletions(-) mode change 100644 => 100755 nixEnv/shells/shell-dmd-verNix.nix mode change 100644 => 100755 nixEnv/shells/shell-dmd-verUser.nix mode change 100644 => 100755 nixEnv/shells/shell-ldc-verNix.nix mode change 100644 => 100755 nixEnv/shells/shell-ldc-verUser.nix (limited to 'nixEnv/shells') diff --git a/nixEnv/shells/shell-dmd-verNix.nix b/nixEnv/shells/shell-dmd-verNix.nix old mode 100644 new mode 100755 index 7f16efe..cac08f4 --- a/nixEnv/shells/shell-dmd-verNix.nix +++ b/nixEnv/shells/shell-dmd-verNix.nix @@ -1,3 +1,4 @@ +#!/usr/bin/env -S nix-shell { pkgs ? import {} }: pkgs.mkShell { buildInputs = with pkgs; [ diff --git a/nixEnv/shells/shell-dmd-verUser.nix b/nixEnv/shells/shell-dmd-verUser.nix old mode 100644 new mode 100755 index 334aece..4e40c0b --- a/nixEnv/shells/shell-dmd-verUser.nix +++ b/nixEnv/shells/shell-dmd-verUser.nix @@ -1,3 +1,4 @@ +#!/usr/bin/env -S nix-shell { pkgs ? import { overlays = [ ]; } }: diff --git a/nixEnv/shells/shell-ldc-verNix.nix b/nixEnv/shells/shell-ldc-verNix.nix old mode 100644 new mode 100755 index 0a6aa9a..748f553 --- a/nixEnv/shells/shell-ldc-verNix.nix +++ b/nixEnv/shells/shell-ldc-verNix.nix @@ -1,5 +1,12 @@ +#!/usr/bin/env -S nix-shell { pkgs ? import {} }: pkgs.mkShell { - buildInputs = with pkgs; - [ (import ./packages-ldc.nix { inherit pkgs; }) ]; + buildInputs = with pkgs; [ + (import ./packages-ldc.nix { inherit pkgs; }) + ]; + shellHook = '' + # nix-build + ## nix-build -I nixpkgs= + ## nix-build -I nixpkgs=/nixpkgs-ra/nixpkgs + ''; } diff --git a/nixEnv/shells/shell-ldc-verUser.nix b/nixEnv/shells/shell-ldc-verUser.nix old mode 100644 new mode 100755 index 1c9c092..d7f3267 --- a/nixEnv/shells/shell-ldc-verUser.nix +++ b/nixEnv/shells/shell-ldc-verUser.nix @@ -1,7 +1,14 @@ +#!/usr/bin/env -S nix-shell { pkgs ? import { overlays = [ (import ../overlays/ldcVersion.nix) ]; } }: pkgs.mkShell { - buildInputs = with pkgs; - [ (import ./packages-ldc.nix { inherit pkgs; }) ]; + buildInputs = with pkgs; [ + (import ./packages-ldc.nix { inherit pkgs; }) + ]; + shellHook = '' + # nix-build + ## nix-build -I nixpkgs= + ## nix-build -I nixpkgs=/nixpkgs-ra/nixpkgs + ''; } -- cgit v1.2.3