rework features, add abi support, add fd args

This commit is contained in:
atagen 2025-11-06 17:06:03 +11:00
parent ab083b07e4
commit 2341a204bb
6 changed files with 176 additions and 63 deletions

View file

@ -26,26 +26,18 @@
});
packages = forAllSystems (pkgs: {
default = self.packages.${pkgs.system}.yoke;
yoke =
let
details = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).package;
lib = pkgs.lib;
in
pkgs.rustPlatform.buildRustPackage (finalAttrs: {
pname = details.name;
inherit (details) version;
src = ./.;
cargoLock.lockFile = ./Cargo.lock;
RUSTFLAGS = "-C prefer-dynamic=yes";
meta = {
description = details.description;
homepage = details.repository;
license = lib.licenses.gpl3Plus;
maintainers = [ lib.maintainers.atagen ];
mainProgram = details.name;
};
});
yoke = pkgs.rustPlatform.callPackage ./nix/package.nix {
features = [
"cli"
];
};
yoke-lite = pkgs.rustPlatform.callPackage ./nix/package.nix { };
});
nixosModules.default =
{ pkgs, ... }:
{
imports = [ ./nix/module.nix ];
programs.yoke.package = self.packages.${pkgs.system}.yoke;
};
};
}