Files
nix-packaging/cosmic-web-apps.nix

63 lines
1.1 KiB
Nix

{
lib,
fetchFromGitHub,
openssl,
git,
cmake,
rustPlatform,
libxkbcommon,
pkg-config,
glib,
gtk3,
webkitgtk_4_1,
wayland,
makeBinaryWrapper,
}:
rustPlatform.buildRustPackage rec {
pname = "web-apps";
version = "2.0.1";
src = fetchFromGitHub {
owner = "cosmic-utils";
repo = "web-apps";
rev = "2.0.1";
hash = "sha256-vWEa6mSK8lhqHRU/Zgi2HUGIs37G7E28AEEWj7TSaPc=";
};
cargoHash = "sha256-bwoG4KMB8JQHE+dc3X2OHDDmg1jWBfXMcR68bbCq/Ag=";
buildInputs = [
wayland
glib
libxkbcommon
pkg-config
openssl
git
gtk3
webkitgtk_4_1
];
nativeBuildInputs = [
cmake
pkg-config
makeBinaryWrapper
];
postInstall = ''
wrapProgram $out/bin/dev-heppen-webapps \
--prefix LD_LIBRARY_PATH : ${
lib.makeLibraryPath [
wayland
libxkbcommon
]
}
'';
meta = {
description = " Web applications at your fingertips.";
homepage = "https://github.com/cosmic-utils/web-apps";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ berrij ];
};
}