From 6a17cf232d5a13b3ec96b0dd0320d8c6858c35a5 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 25 May 2022 22:32:35 +0200 Subject: chore(3p/naersk): Bump and fetch via niv instead Change-Id: Icae69a1170e06f61aea5494963913c7278f18dce Reviewed-on: https://cl.tvl.fyi/c/depot/+/5669 Tested-by: BuildkiteCI Autosubmit: tazjin Reviewed-by: sterni Reviewed-by: grfn --- third_party/naersk/default.nix | 11 ++--------- third_party/sources/sources.json | 12 ++++++++++++ 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/third_party/naersk/default.nix b/third_party/naersk/default.nix index 855e2bd01ba2..bf4c55fe55b3 100644 --- a/third_party/naersk/default.nix +++ b/third_party/naersk/default.nix @@ -1,10 +1,3 @@ -{ pkgs, ... }: +{ depot, pkgs, ... }: -pkgs.callPackage - (pkgs.fetchFromGitHub { - owner = "nmattia"; - repo = "naersk"; - rev = "a3f40fe42cc6d267ff7518fa3199e99ff1444ac4"; - sha256 = "1nf7fn8anghwf6p5p58ywbcwdkjxq112qv663rn52jq9k95iakdi"; - }) -{ } +pkgs.callPackage depot.third_party.sources.naersk { } diff --git a/third_party/sources/sources.json b/third_party/sources/sources.json index f5c8754c17b7..064f4250af36 100644 --- a/third_party/sources/sources.json +++ b/third_party/sources/sources.json @@ -23,6 +23,18 @@ "url": "https://github.com/nix-community/emacs-overlay/archive/fd5baf065e1af4cbb9d40eba66971d31f61d6bd1.tar.gz", "url_template": "https://github.com///archive/.tar.gz" }, + "naersk": { + "branch": "master", + "description": "Build rust crates in Nix. No configuration, no code generation, no IFD. Sandbox friendly. [maintainer: @Patryk27]", + "homepage": "", + "owner": "nmattia", + "repo": "naersk", + "rev": "69daaceebe12c070cd5ae69ba38f277bbf033695", + "sha256": "1ip749p9g0prmrwiz0845x9n4j9b39sdrzpi60s4yygy6qgc7262", + "type": "tarball", + "url": "https://github.com/nmattia/naersk/archive/69daaceebe12c070cd5ae69ba38f277bbf033695.tar.gz", + "url_template": "https://github.com///archive/.tar.gz" + }, "nixpkgs": { "branch": "nixos-unstable", "description": "Nix Packages collection", -- cgit 1.4.1