package, license

This commit is contained in:
atagen 2025-10-31 15:03:52 +11:00
parent 0352030bda
commit 6120e4812b
2 changed files with 696 additions and 0 deletions

View file

@ -24,5 +24,27 @@
];
};
});
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;
meta = {
description = "A simple sandboxing tool, similar to bwrap";
homepage = "https://git.atagen.co/atagen/yoke";
license = lib.licenses.gpl3Plus;
maintainers = [ lib.maintainers.atagen ];
mainProgram = details.name;
};
});
});
};
}