From eb41eef6127216543d8b28c9c423ac1be0a4ee24 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Fri, 23 Apr 2021 22:04:42 +0200 Subject: chore(nix): move rustSimple from users.Profpatsch.writers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: lukegb --- users/Profpatsch/netstring/default.nix | 2 +- users/Profpatsch/netstring/tests/default.nix | 11 +++-------- 2 files changed, 4 insertions(+), 9 deletions(-) (limited to 'users/Profpatsch/netstring') diff --git a/users/Profpatsch/netstring/default.nix b/users/Profpatsch/netstring/default.nix index 333244a0f701..2b21cde388e5 100644 --- a/users/Profpatsch/netstring/default.nix +++ b/users/Profpatsch/netstring/default.nix @@ -27,7 +27,7 @@ let return res ''; - rust-netstring = depot.users.Profpatsch.writers.rustSimpleLib { + rust-netstring = depot.nix.writers.rustSimpleLib { name = "netstring"; } '' pub fn to_netstring(s: &[u8]) -> Vec { diff --git a/users/Profpatsch/netstring/tests/default.nix b/users/Profpatsch/netstring/tests/default.nix index b9fb5835e55a..f64beb9e9275 100644 --- a/users/Profpatsch/netstring/tests/default.nix +++ b/users/Profpatsch/netstring/tests/default.nix @@ -2,15 +2,10 @@ let - inherit (depot.users.Profpatsch.netstring) - python-netstring - rust-netstring - ; - python-netstring-test = depot.users.Profpatsch.writers.python3 { name = "python-netstring-test"; libraries = p: [ - python-netstring + depot.users.Profpatsch.netstring.python-netstring ]; } '' import netstring @@ -38,10 +33,10 @@ let ) ''; - rust-netstring-test = depot.users.Profpatsch.writers.rustSimple { + rust-netstring-test = depot.nix.writers.rustSimple { name = "rust-netstring-test"; dependencies = [ - rust-netstring + depot.users.Profpatsch.netstring.rust-netstring ]; } '' extern crate netstring; -- cgit 1.4.1