rework features, add abi support, add fd args
This commit is contained in:
parent
ab083b07e4
commit
e2ad3c0b39
6 changed files with 174 additions and 61 deletions
32
flake.nix
32
flake.nix
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue