{ lib, stdenv , cryfs , desktop-file-utils , fetchFromGitHub , gettext , glib , gtk4 , libadwaita , meson , ninja , pkg-config , python3 , rustPlatform , rustc , cargo , wrapGAppsHook }: stdenv.mkDerivation rec { pname = "vaults"; version = "0.6.0"; src = fetchFromGitHub { owner = "mpobaschnig"; repo = "Vaults"; rev = version; sha256 = "sha256-1WxzE3sH4QpUU13mTLjYt1zMUgAQ+OA7J5j4pwG9oWo="; }; cargoDeps = rustPlatform.fetchCargoTarball { inherit src; name = "${pname}-${version}"; hash = "sha256-uUO7l+B/6I+XxEb0xxBynq9CC8ixRAvdJ2HWTCVyeQM="; }; nativeBuildInputs = [ desktop-file-utils gettext meson ninja pkg-config python3 cargo rustPlatform.cargoSetupHook rustc wrapGAppsHook ]; buildInputs = [ glib gtk4 libadwaita ]; postPatch = '' patchShebangs build-aux/meson_post_install.py ''; preFixup = '' gappsWrapperArgs+=( --prefix PATH ":" "${lib.makeBinPath [ cryfs ]}" ); ''; }