parent
4e88e82e06
commit
2b0a8427e6
|
@ -438,8 +438,13 @@ rec {
|
||||||
=> true
|
=> true
|
||||||
isStorePath pkgs.python
|
isStorePath pkgs.python
|
||||||
=> true
|
=> true
|
||||||
|
isStorePath [] || isStorePath 42 || isStorePath {} || …
|
||||||
|
=> false
|
||||||
*/
|
*/
|
||||||
isStorePath = x: builtins.substring 0 1 (toString x) == "/" && dirOf (builtins.toPath x) == builtins.storeDir;
|
isStorePath = x:
|
||||||
|
builtins.isString x
|
||||||
|
&& builtins.substring 0 1 (toString x) == "/"
|
||||||
|
&& dirOf (builtins.toPath x) == builtins.storeDir;
|
||||||
|
|
||||||
/* Convert string to int
|
/* Convert string to int
|
||||||
Obviously, it is a bit hacky to use fromJSON that way.
|
Obviously, it is a bit hacky to use fromJSON that way.
|
||||||
|
|
Loading…
Reference in New Issue