Commit c8c2d706 authored by Niklas Hambüchen's avatar Niklas Hambüchen
Browse files

moonfire-nvr: Fix unstable UI path.

See
https://github.com/NixOS/nixpkgs/pull/243261#pullrequestreview-1793813904

Fixes the symlink from being e.g.

    /nix/store/c0v8rfg69c042ck81vbmfhqgmlsbp2jd-moonfire-nvr-0.7.7/lib/ui/n9c8ijzh0ndgp6s5h88ix41wfhfxycpz-moonfire-nvr-ui-0.7.7 -> /nix/store/n9c8ijzh0ndgp6s5h88ix41wfhfxycpz-moonfire-nvr-ui-0.7.7/

to being

    /nix/store/c0v8rfg69c042ck81vbmfhqgmlsbp2jd-moonfire-nvr-0.7.7/lib/ui -> /nix/store/n9c8ijzh0ndgp6s5h88ix41wfhfxycpz-moonfire-nvr-ui-0.7.7/

Most likely this was caused by a misunderstanding of how
`ln -s target linkname` works:
If the `linkname` already exists and is a directory,
it creates the link _inside_ it, with the link's filename
being the basename of `target`.
parent ae814fd3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ rustPlatform.buildRustPackage {
  ];

  postInstall = ''
    mkdir -p $out/lib/ui
    mkdir -p $out/lib
    ln -s ${ui} $out/lib/ui
  '';