packages/vaults: init at 0.3.0

This commit is contained in:
Max Headroom 2022-11-14 18:03:53 +01:00
parent 5ee2af46f3
commit 1404a09df2
2 changed files with 64 additions and 0 deletions

View file

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

View file

@ -54,4 +54,6 @@ in
neovim-gtk = pkgs.callPackage ./apps/neovim-gtk { }; neovim-gtk = pkgs.callPackage ./apps/neovim-gtk { };
steam-metro-skin = import ./data/misc/steam-metro-skin { inherit (pkgs) fetchzip; }; steam-metro-skin = import ./data/misc/steam-metro-skin { inherit (pkgs) fetchzip; };
vaults = pkgs.callPackage ./apps/vaults { };
} }