From e4ddc3ba75f75b6df0d11ccc62b75a346d0e3846 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Thu, 2 Jul 2020 13:28:59 +0100 Subject: Prefer builtins.path Thanks to the Nix anti-patterns documented here... https://nix.dev/anti-patterns/language.html#reproducability-referencing-top-level-directory-with ...I'm cleaning up some of my Nix expressions. Read the article for more context. --- website/days-of-week-habits/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'website/days-of-week-habits') diff --git a/website/days-of-week-habits/default.nix b/website/days-of-week-habits/default.nix index f4d3318439d1..3831b356d2ff 100644 --- a/website/days-of-week-habits/default.nix +++ b/website/days-of-week-habits/default.nix @@ -2,7 +2,7 @@ pkgs.stdenv.mkDerivation { name = "typescript"; - srcs = ./.; + srcs = builtins.path { path = ./.; name = "day-of-week-habits"; }; buildInputs = with pkgs; [ nodejs # Exposes lscpu for parcel.js -- cgit 1.4.1