From b234439e6720cbb635818830d34dffc6a2a6cdf9 Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Sun, 7 Aug 2022 17:04:38 +0200 Subject: home: pkgs: gitignore: add .gitignore to the filenames this eases debugging and solves a bug where the direnv gitignore file is not downloaded in the store by fetchurl --- home/pkgs/gitignore/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home/pkgs/gitignore/default.nix b/home/pkgs/gitignore/default.nix index f0544c6..a77083f 100644 --- a/home/pkgs/gitignore/default.nix +++ b/home/pkgs/gitignore/default.nix @@ -3,7 +3,8 @@ let fetch-gitignore = module: sha256: let url = "https://www.toptal.com/developers/gitignore/api/" + module; - in pkgs.fetchurl { inherit url sha256; }; + name = module + ".gitignore"; + in pkgs.fetchurl { inherit url sha256 name; }; in { emacs = fetch-gitignore "emacs" "sha256:34LaJsGa5fFSMjE7l8JgQAmH8f07jcQmsaOdPVctHMk="; -- cgit v1.2.3