Compare commits
4 Commits
threema-de
...
cosmic-web
| Author | SHA1 | Date | |
|---|---|---|---|
|
42c268bf26
|
|||
|
aae0bc1bb0
|
|||
|
3df6d08b36
|
|||
|
1451494f95
|
62
cosmic-web-apps.nix
Normal file
62
cosmic-web-apps.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
@@ -14,10 +14,7 @@
|
||||
in
|
||||
{
|
||||
packages.${system} = {
|
||||
xsdata-pydantic = pkgs.python313Packages.callPackage ./xsdata-pydantic.nix { };
|
||||
entsoe-apy = pkgs.python313Packages.callPackage ./entsoe-apy.nix {
|
||||
xsdata-pydantic = self.packages.${system}.xsdata-pydantic;
|
||||
};
|
||||
cosmic-web-apps = pkgs.python313Packages.callPackage ./cosmic-web-apps.nix { };
|
||||
};
|
||||
|
||||
devShells.${system} = {
|
||||
|
||||
Reference in New Issue
Block a user