Init cosmic-web-apps
This commit is contained in:
8283
Cargo.lock
generated
Normal file
8283
Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
77
cosmic-web-apps.nix
Normal file
77
cosmic-web-apps.nix
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
pkgconfig,
|
||||||
|
fetchFromGitHub,
|
||||||
|
openssl,
|
||||||
|
git,
|
||||||
|
cmake,
|
||||||
|
rustPlatform,
|
||||||
|
libxkbcommon,
|
||||||
|
pkg-config,
|
||||||
|
glib,
|
||||||
|
gtk3,
|
||||||
|
webkitgtk_4_1,
|
||||||
|
wayland,
|
||||||
|
}:
|
||||||
|
|
||||||
|
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=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoLock = {
|
||||||
|
lockFile = "${src}/Cargo.lock";
|
||||||
|
outputHashes = {
|
||||||
|
"accesskit-0.16.0" = "sha256-uoLcd116WXQTu1ZTfJDEl9+3UPpGBN/QuJpkkGyRADQ=";
|
||||||
|
"atomicwrites-0.4.2" = "sha256-QZSuGPrJXh+svMeFWqAXoqZQxLq/WfIiamqvjJNVhxA=";
|
||||||
|
"clipboard_macos-0.1.0" = "sha256-+8CGmBf1Gl9gnBDtuKtkzUE5rySebhH7Bsq/kNlJofY=";
|
||||||
|
"cosmic-client-toolkit-0.1.0" = "sha256-KvXQJ/EIRyrlmi80WKl2T9Bn+j7GCfQlcjgcEVUxPkc=";
|
||||||
|
"cosmic-config-0.1.0" = "sha256-vZpw0HC1NwuDSJgd1rOsJgJoCY5yU44wZd9gQpCyN0s=";
|
||||||
|
"cosmic-freedesktop-icons-0.3.0" = "sha256-XAcoKxMp1fyclalkkqVMoO7+TVekj/Tq2C9XFM9FFCk=";
|
||||||
|
"cosmic-settings-daemon-0.1.0" = "sha256-0KCw70FGecsRPpapC7YeOsxNFtWdIReqkm0hgTqmd0s=";
|
||||||
|
"cosmic-text-0.14.2" = "sha256-LLuUqwUATVy1fcDzHcr+VcpmdpzBNkuGNhMqJ6GFuWA=";
|
||||||
|
"dpi-0.1.1" = "sha256-zuX4cvJP67wR4SyWIfkqdxnEf+SUgBb0//1hpoZszRo=";
|
||||||
|
"iced_glyphon-0.6.0" = "sha256-u1vnsOjP8npQ57NNSikotuHxpi4Mp/rV9038vAgCsfQ=";
|
||||||
|
"smithay-clipboard-0.8.0" = "sha256-4InFXm0ahrqFrtNLeqIuE3yeOpxKZJZx+Bc0yQDtv34=";
|
||||||
|
"softbuffer-0.4.1" = "sha256-/ocK79Lr5ywP/bb5mrcm7eTzeBbwpOazojvFUsAjMKM=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
wayland
|
||||||
|
glib
|
||||||
|
libxkbcommon
|
||||||
|
pkgconfig
|
||||||
|
openssl
|
||||||
|
git
|
||||||
|
gtk3
|
||||||
|
webkitgtk_4_1
|
||||||
|
];
|
||||||
|
nativeBuildInputs = [
|
||||||
|
cmake
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
wrapProgram $out/bin/dev-heppen-webapps \
|
||||||
|
--prefix LD_LIBRARY_PATH : ${
|
||||||
|
lib.makeLibraryPath [
|
||||||
|
wayland
|
||||||
|
libxkbcommon
|
||||||
|
]
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = " Web applications at your fingertips.";
|
||||||
|
homepage = "https://github.com/cosmic-utils/web-apps";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with 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
|
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} = {
|
||||||
|
|||||||
Reference in New Issue
Block a user