From 9540b1424f272eafe54cb64206075389aadfc727 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 10 May 2023 13:05:57 +0000 Subject: [PATCH] templates: simplify direnv files I don't need to bootstrap `nix-direnv` for those projects. Also remove the unused `watch_file flake/*.nix` directives, as they do not exist in the templates. --- templates/c++-cmake/.envrc | 7 ------- templates/c++-meson/.envrc | 7 ------- 2 files changed, 14 deletions(-) diff --git a/templates/c++-cmake/.envrc b/templates/c++-cmake/.envrc index 95ed6fb..2934919 100644 --- a/templates/c++-cmake/.envrc +++ b/templates/c++-cmake/.envrc @@ -1,10 +1,3 @@ -if ! has nix_direnv_version || ! nix_direnv_version 2.2.1; then - source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.2.1/direnvrc" "sha256-zelF0vLbEl5uaqrfIzbgNzJWGmLzCmYAkInj/LNxvKs=" -fi - use flake -watch_file ./flake/checks.nix -watch_file ./flake/dev-shells.nix - eval "$shellHooks" diff --git a/templates/c++-meson/.envrc b/templates/c++-meson/.envrc index 95ed6fb..2934919 100644 --- a/templates/c++-meson/.envrc +++ b/templates/c++-meson/.envrc @@ -1,10 +1,3 @@ -if ! has nix_direnv_version || ! nix_direnv_version 2.2.1; then - source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.2.1/direnvrc" "sha256-zelF0vLbEl5uaqrfIzbgNzJWGmLzCmYAkInj/LNxvKs=" -fi - use flake -watch_file ./flake/checks.nix -watch_file ./flake/dev-shells.nix - eval "$shellHooks"