4 Commits

Author SHA1 Message Date
42c268bf26 Use cargoHash directy 2025-11-04 17:30:35 +01:00
aae0bc1bb0 Fix Cargo lock problem 2025-11-01 12:29:03 +01:00
3df6d08b36 Update cosmic-web-apps 2025-11-01 11:57:18 +01:00
1451494f95 Init cosmic-web-apps 2025-10-31 19:52:30 +01:00
3 changed files with 63 additions and 49 deletions

62
cosmic-web-apps.nix Normal file
View File

@@ -0,0 +1,62 @@
{
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 ];
};
}

View File

@@ -1,45 +0,0 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
httpx,
loguru,
xsdata-pydantic,
}:
buildPythonPackage rec {
pname = "entsoe-apy";
version = "0.4.0";
src = fetchFromGitHub {
owner = "berrij";
repo = "entsoe-apy";
rev = "cb4ebd4ed401268e605b5267347e0e934d048883";
hash = "sha256-M0W0r7ApJKG0wMczC0kp/jNOa+PcgVGadvEOSQ2hRkU=";
};
pyproject = true;
build-system = [ setuptools ];
dependencies = [
httpx
loguru
xsdata-pydantic
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [
"entsoe"
];
meta = {
description = "Python Package to Query the ENTSO-E API";
homepage = "https://github.com/berrij/entsoe-apy";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ berrij ];
platforms = lib.platforms.all;
};
}

View File

@@ -14,10 +14,7 @@
in in
{ {
packages.${system} = { packages.${system} = {
xsdata-pydantic = pkgs.python313Packages.callPackage ./xsdata-pydantic.nix { }; cosmic-web-apps = pkgs.python313Packages.callPackage ./cosmic-web-apps.nix { };
entsoe-apy = pkgs.python313Packages.callPackage ./entsoe-apy.nix {
xsdata-pydantic = self.packages.${system}.xsdata-pydantic;
};
}; };
devShells.${system} = { devShells.${system} = {