1
0
Fork 0
selfhostblocks/_disnix/vaultwarden/web.nix

36 lines
534 B
Nix
Raw Normal View History

{ stdenv
, pkgs
, utils
}:
{ name
, path
}:
{
inherit name;
inherit path;
pkg = stdenv.mkDerivation rec {
inherit name;
buildCommand =
let
dir = dirOf path;
base = baseNameOf path;
in ''
mkdir -p $out
ln -s ${pkgs.vaultwarden-vault}/share/vaultwarden/vault $out/${base}
echo "${dir}" > $out/.dysnomia-targetdir
cat > $out/.dysnomia-fileset <<FILESET
symlink $out/${base}
target .
FILESET
'';
};
type = "fileset";
}