Compare commits

..

15 commits

Author SHA1 Message Date
Vinzenz Schroeter
7e07a35472 partially fix tests
Some checks failed
Rust / build (pull_request) Failing after 36s
2025-09-28 23:14:11 +02:00
Vinzenz Schroeter
f4c7519658 export some builtin traits,
brightness conversion fails for invalid values,

macros for wrapping attrs
2025-09-28 23:14:11 +02:00
Vinzenz Schroeter
bffc905261 create separate types per command 2025-09-28 23:14:10 +02:00
Vinzenz Schroeter
c29482ac56 move command to module, first separate types 2025-09-28 23:14:10 +02:00
Vinzenz Schroeter
227db03d23 move containers to module 2025-09-28 23:14:10 +02:00
Vinzenz Schroeter
4cbf3784fc update servicepoint, simplify copy_raw 2025-09-28 23:13:20 +02:00
Vinzenz Schroeter
8d5e408653 add get set fill macro 2025-09-28 23:13:20 +02:00
Vinzenz Schroeter
3c27917afa add width and height macro 2025-09-28 23:13:20 +02:00
Vinzenz Schroeter
9fa09fe33e add clone to macro 2025-09-28 23:13:20 +02:00
Vinzenz Schroeter
14970c0ac4 declare wrapper types with macro 2025-09-28 23:13:20 +02:00
Vinzenz Schroeter
f7cb5546b3 update servicepoint library 2025-09-28 23:13:20 +02:00
Vinzenz Schroeter
44ef4bb6d7 add pkgconfig
All checks were successful
Rust / build (push) Successful in 2m41s
2025-09-28 23:12:43 +02:00
Vinzenz Schroeter
421522d963 add nix package 2025-09-28 23:07:29 +02:00
Vinzenz Schroeter
27ffbaa080 change nix formatter to nixfmt-tree 2025-09-28 22:53:29 +02:00
Vinzenz Schroeter
ff26193e48 update to nixos 25.05 2025-09-28 22:52:18 +02:00
3 changed files with 44 additions and 12 deletions

6
flake.lock generated
View file

@ -2,11 +2,11 @@
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1749494155,
"narHash": "sha256-FG4DEYBpROupu758beabUk9lhrblSf5hnv84v1TLqMc=",
"lastModified": 1758791193,
"narHash": "sha256-F8WmEwFoHsnix7rt290R0rFXNJiMbClMZyIC/e+HYf0=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "88331c17ba434359491e8d5889cce872464052c2",
"rev": "25e53aa156d47bad5082ff7618f5feb1f5e02d01",
"type": "github"
},
"original": {

View file

@ -6,7 +6,7 @@
};
outputs =
inputs@{
{
self,
nixpkgs,
}:
@ -24,15 +24,45 @@
system:
f rec {
pkgs = nixpkgs.legacyPackages.${system};
selfPkgs = self.packages.${system};
inherit system;
}
);
in
rec {
devShells = forAllSystems (
{ pkgs, system }:
{
packages = forAllSystems (
{ pkgs, selfPkgs, ... }:
{
default = pkgs.mkShell rec {
servicepoint-binding-uniffi = pkgs.rustPlatform.buildRustPackage {
pname = "servicepoint-binding-uniffi";
version = "0.13.1";
src = ./.;
cargoDeps = pkgs.rustPlatform.importCargoLock { lockFile = ./Cargo.lock; };
nativeBuildInputs = with pkgs; [
pkg-config
];
buildInputs = with pkgs; [
xe
xz
];
postInstall = ''
mkdir -p $out/lib/pkgconfig
sed "s:\$out:$out:g" ${./servicepoint-binding-uniffi.pc.in} | sed "s:\$version:$version:g" > $out/lib/pkgconfig/servicepoint-binding-uniffi.pc
'';
};
default = selfPkgs.servicepoint-binding-uniffi;
}
);
devShells = forAllSystems (
{ pkgs, selfPkgs, ... }:
{
default = pkgs.mkShell {
inputsFrom = [ selfPkgs.default ];
packages = with pkgs; [
(pkgs.symlinkJoin {
name = "rust-toolchain";
@ -46,15 +76,12 @@
cargo-tarpaulin
];
})
xe
xz
pkg-config
];
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
};
}
);
formatter = forAllSystems ({ pkgs, ... }: pkgs.nixfmt-rfc-style);
formatter = forAllSystems ({ pkgs, ... }: pkgs.nixfmt-tree);
};
}

View file

@ -0,0 +1,5 @@
Name: servicepoint-binding-uniffi
Description: UniFFI bindings for the servicepoint library
Version: $version
URL: https://git.berlin.ccc.de/servicepoint/servicepoint-binding-uniffi
Libs: -L$out/lib -lservicepoint_binding_uniffi