0f736b1fc4
will only check users of such group also cleaned some code: - Input doesn't need to be UTF-8 valid. - Main fuction is dead-simple, very readable. - Added some modularity. - Add some docs on behavior details.
20 lines
377 B
Nix
20 lines
377 B
Nix
{ pkgs }:
|
|
let
|
|
cargoManifest = builtins.fromTOML (builtins.readFile ./Cargo.toml);
|
|
pkg = cargoManifest.package;
|
|
in
|
|
pkgs.rustPlatform.buildRustPackage {
|
|
pname = pkg.name;
|
|
inherit (pkg) version;
|
|
|
|
src = pkgs.lib.cleanSource ./.;
|
|
|
|
cargoHash = "sha256-We/E3T6SRZeTj3GZNySjhdlcg49v8FD8sGA5pyKSOXA=";
|
|
|
|
buildInputs = [
|
|
pkgs.pam
|
|
pkgs.curl
|
|
];
|
|
doCheck = false;
|
|
}
|