mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-11-26 22:31:39 +03:00
8 lines
156 B
Nix
8 lines
156 B
Nix
|
{lib, ...}: let
|
||
|
l = builtins // lib;
|
||
|
|
||
|
sanitizeRelativePath = path:
|
||
|
l.removePrefix "/" (l.toString (l.toPath "/${path}"));
|
||
|
in
|
||
|
sanitizeRelativePath
|