From 9081af7f422c6ebe8a2ddbc301ff638bb73a9337 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Wed, 4 Jan 2017 20:18:58 +0100 Subject: [PATCH] fix environment.etc entries with a subdirectory --- modules/lib/write-text.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/lib/write-text.nix b/modules/lib/write-text.nix index f58a8342..d268ef33 100644 --- a/modules/lib/write-text.nix +++ b/modules/lib/write-text.nix @@ -6,7 +6,9 @@ with lib; let - drv = mkTextDerivation name config.text; + fileName = file: last (splitString "/" file); + + drv = mkTextDerivation (fileName name) config.text; in