diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2022-08-07 17:04:38 +0200 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2022-08-07 17:04:38 +0200 |
| commit | b234439e6720cbb635818830d34dffc6a2a6cdf9 (patch) | |
| tree | f8e82c8e38320113e33e17f5c993299fec174ada /home/pkgs/gitignore/default.nix | |
| parent | e35998adbe8da47e240e0487f0668cdb7b2bf995 (diff) | |
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
Diffstat (limited to 'home/pkgs/gitignore/default.nix')
| -rw-r--r-- | home/pkgs/gitignore/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
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="; |
