a linter for your flake.lock file
1{ lib, rustPlatform }:
2let
3 toml = (lib.importTOML ./Cargo.toml).package;
4in
5rustPlatform.buildRustPackage {
6 pname = "locker-rust";
7 inherit (toml) version;
8
9 src = lib.fileset.toSource {
10 root = ./.;
11 fileset = lib.fileset.intersection (lib.fileset.fromSource (lib.sources.cleanSource ./.)) (
12 lib.fileset.unions [
13 ./Cargo.toml
14 ./Cargo.lock
15 ./src
16 ./test
17 ]
18 );
19 };
20
21 cargoLock.lockFile = ./Cargo.lock;
22
23 meta = {
24 inherit (toml) homepage description;
25 license = lib.licenses.eupl12;
26 maintainers = with lib.maintainers; [ isabelroses ];
27 mainProgram = "locker";
28 };
29}