diff options
| author | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2021-04-14 12:02:36 +0200 |
|---|---|---|
| committer | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2021-05-07 01:22:30 +0200 |
| commit | 326d0970e067da3577b353c20cde29fc22a77265 (patch) | |
| tree | 3f4ef3f97708f62d9d5ce82804f48377e7f0142f /lib/strings.nix | |
| parent | Merge pull request #121936 from svanderburg/disnix_style_fixes (diff) | |
| download | nixpkgs-326d0970e067da3577b353c20cde29fc22a77265.tar.gz | |
lib/strings: fix example for isStorePath
Since it checks if dirOf x is the nix store dir, a trailing slash will
break this check and make it return false.
Diffstat (limited to 'lib/strings.nix')
| -rw-r--r-- | lib/strings.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/strings.nix b/lib/strings.nix index 2e502588bf80..dc287f8dd5cb 100644 --- a/lib/strings.nix +++ b/lib/strings.nix @@ -659,7 +659,7 @@ rec { Example: isStorePath "/nix/store/d945ibfx9x185xf04b890y4f9g3cbb63-python-2.7.11/bin/python" => false - isStorePath "/nix/store/d945ibfx9x185xf04b890y4f9g3cbb63-python-2.7.11/" + isStorePath "/nix/store/d945ibfx9x185xf04b890y4f9g3cbb63-python-2.7.11" => true isStorePath pkgs.python => true |
