mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 20:55:31 +03:00
parent
fd61a8fce2
commit
a7d31fe449
1 changed files with 2 additions and 2 deletions
|
@ -12,11 +12,11 @@ let
|
||||||
declarations = map (fn: stripPrefix fn) opt.declarations;
|
declarations = map (fn: stripPrefix fn) opt.declarations;
|
||||||
});
|
});
|
||||||
|
|
||||||
prefix = toString pkgs.path;
|
prefix = toString ../../..;
|
||||||
|
|
||||||
stripPrefix = fn:
|
stripPrefix = fn:
|
||||||
if substring 0 (stringLength prefix) fn == prefix then
|
if substring 0 (stringLength prefix) fn == prefix then
|
||||||
substring (add (stringLength prefix) 1) 1000 fn
|
substring (stringLength prefix + 1) 1000 fn
|
||||||
else
|
else
|
||||||
fn;
|
fn;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue