nix: better run pattern, shared libary work