diff options
author | Profpatsch <mail@profpatsch.de> | 2021-04-23T20·04+0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2021-04-24T10·23+0000 |
commit | eb41eef6127216543d8b28c9c423ac1be0a4ee24 (patch) | |
tree | c01e67c4062711b3623841e8e56791ec8a14edc1 /users/Profpatsch/netencode/default.nix | |
parent | 7e888c3c7bb36f6ab6e83d4a6f6a755ff4156791 (diff) |
chore(nix): move rustSimple from users.Profpatsch.writers r/2547
I think it’s solid enough to use in a wider context. Change-Id: If53e8bbb6b90fa88d73fb42730db470e822ea182 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3055 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org> Reviewed-by: lukegb <lukegb@tvl.fyi>
Diffstat (limited to 'users/Profpatsch/netencode/default.nix')
-rw-r--r-- | users/Profpatsch/netencode/default.nix | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/users/Profpatsch/netencode/default.nix b/users/Profpatsch/netencode/default.nix index 33209276f92f..6662e622e1bf 100644 --- a/users/Profpatsch/netencode/default.nix +++ b/users/Profpatsch/netencode/default.nix @@ -1,12 +1,7 @@ { depot, pkgs, lib, ... }: let - imports = { - inherit (depot.users.Profpatsch) - writers; - }; - - netencode-rs = imports.writers.rustSimpleLib { + netencode-rs = depot.nix.writers.rustSimpleLib { name = "netencode"; dependencies = [ depot.third_party.rust-crates.nom @@ -18,14 +13,14 @@ let gen = import ./gen.nix { inherit lib; }; - pretty-rs = imports.writers.rustSimpleLib { + pretty-rs = depot.nix.writers.rustSimpleLib { name = "netencode-pretty"; dependencies = [ netencode-rs ]; } (builtins.readFile ./pretty.rs); - pretty = depot.users.Profpatsch.writers.rustSimple { + pretty = depot.nix.writers.rustSimple { name = "netencode-pretty"; dependencies = [ netencode-rs @@ -48,7 +43,7 @@ let } ''; - netencode-mustache = imports.writers.rustSimple { + netencode-mustache = depot.nix.writers.rustSimple { name = "netencode_mustache"; dependencies = [ depot.users.Profpatsch.arglib.netencode.rust @@ -58,7 +53,7 @@ let } (builtins.readFile ./netencode-mustache.rs); - record-get = imports.writers.rustSimple { + record-get = depot.nix.writers.rustSimple { name = "record-get"; dependencies = [ netencode-rs @@ -87,7 +82,7 @@ let } ''; - record-splice-env = imports.writers.rustSimple { + record-splice-env = depot.nix.writers.rustSimple { name = "record-splice-env"; dependencies = [ netencode-rs @@ -116,7 +111,7 @@ let } ''; - env-splice-record = imports.writers.rustSimple { + env-splice-record = depot.nix.writers.rustSimple { name = "env-splice-record"; dependencies = [ netencode-rs |