Compare commits

..

12 commits

Author SHA1 Message Date
Vinzenz Schroeter
ecb4f51997 partially fix tests
Some checks failed
Rust / build (pull_request) Failing after 1m26s
2025-06-16 16:37:20 +02:00
Vinzenz Schroeter
0894b15c65 export some builtin traits,
brightness conversion fails for invalid values,

macros for wrapping attrs
2025-06-16 15:01:53 +02:00
Vinzenz Schroeter
b218bd6474 create separate types per command
Some checks failed
Rust / build (pull_request) Failing after 1m22s
2025-06-16 11:33:40 +02:00
Vinzenz Schroeter
635fef0244 move command to module, first separate types
Some checks failed
Rust / build (pull_request) Failing after 1m20s
2025-06-13 11:47:23 +02:00
Vinzenz Schroeter
cee4937270 move containers to module 2025-06-13 11:45:11 +02:00
Vinzenz Schroeter
27d71cefe6 update to nixos 25.05 2025-06-13 11:05:31 +02:00
Vinzenz Schroeter
8f03010944 update servicepoint, simplify copy_raw 2025-06-13 10:17:59 +02:00
Vinzenz Schroeter
7fe5ef07a8 add get set fill macro 2025-06-13 09:52:07 +02:00
Vinzenz Schroeter
0b3f243ffa add width and height macro 2025-06-13 01:27:57 +02:00
Vinzenz Schroeter
fda2b9419d add clone to macro 2025-06-13 01:13:51 +02:00
Vinzenz Schroeter
88f7696dbd declare wrapper types with macro 2025-06-13 01:09:31 +02:00
Vinzenz Schroeter
022106e2db update servicepoint library
All checks were successful
Rust / build (pull_request) Successful in 1m59s
2025-05-04 18:55:19 +02:00
3 changed files with 11 additions and 43 deletions

6
flake.lock generated
View file

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

View file

@ -6,7 +6,7 @@
};
outputs =
{
inputs@{
self,
nixpkgs,
}:
@ -24,45 +24,15 @@
system:
f rec {
pkgs = nixpkgs.legacyPackages.${system};
selfPkgs = self.packages.${system};
inherit system;
}
);
in
{
packages = forAllSystems (
{ pkgs, selfPkgs, ... }:
{
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;
}
);
rec {
devShells = forAllSystems (
{ pkgs, selfPkgs, ... }:
{ pkgs, system }:
{
default = pkgs.mkShell {
inputsFrom = [ selfPkgs.default ];
default = pkgs.mkShell rec {
packages = with pkgs; [
(pkgs.symlinkJoin {
name = "rust-toolchain";
@ -76,12 +46,15 @@
cargo-tarpaulin
];
})
xe
xz
pkg-config
];
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
};
}
);
formatter = forAllSystems ({ pkgs, ... }: pkgs.nixfmt-tree);
formatter = forAllSystems ({ pkgs, ... }: pkgs.nixfmt-rfc-style);
};
}

View file

@ -1,5 +0,0 @@
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