diff options
| author | tv <tv@krebsco.de> | 2026-11-30 20:11:50 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-12-01 00:22:40 +0000 |
| commit | d2e3f6081739ff793cdda996550751e922ab4497 (patch) | |
| tree | 8b8c63a8b2a06aea643582d474d35d853d99d289 | |
| parent | cc460231e532398037514d138a0ff5a740a47140 (diff) | |
enstate: build with hrm's crate2nix helper
From the populated source, as the NixOS module, so both are of the same
revision; with the source's Cargo.json if it has one, else from its
Cargo.lock. The package set gets the inputs for it.
| -rw-r--r-- | legacy.nix | 2 | ||||
| -rw-r--r-- | modules/enstate.nix | 3 | ||||
| -rw-r--r-- | pkgs/rust/enstate/default.nix | 7 |
3 files changed, 10 insertions, 2 deletions
@@ -50,7 +50,7 @@ }; }) (self: super: { - inherit mylib; + inherit inputs mylib; }) (import ./pkgs) ] diff --git a/modules/enstate.nix b/modules/enstate.nix index 483718ac..79063d7f 100644 --- a/modules/enstate.nix +++ b/modules/enstate.nix @@ -1,3 +1,4 @@ -{ inputs, ... }: { +{ inputs, pkgs, ... }: { imports = [ (inputs.enstate + "/nix/module.nix") ]; + enstate.package = pkgs.enstate; } diff --git a/pkgs/rust/enstate/default.nix b/pkgs/rust/enstate/default.nix new file mode 100644 index 00000000..9184f217 --- /dev/null +++ b/pkgs/rust/enstate/default.nix @@ -0,0 +1,7 @@ +{ cleanCargoSource, inputs }: + +{ + name = "enstate"; + # The populated source, as for the NixOS module. + src = cleanCargoSource "enstate" inputs.enstate; +} |
