From fe05355c468b072f2b1a45742e1fcdc9da75b5de Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 30 Jul 2022 19:48:40 +0200 Subject: [PATCH] packages/stevenblack-hosts: convert to mkDerivation --- packages/data/stevenblack/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/data/stevenblack/default.nix b/packages/data/stevenblack/default.nix index 4e8a7e4..039e768 100644 --- a/packages/data/stevenblack/default.nix +++ b/packages/data/stevenblack/default.nix @@ -1,9 +1,13 @@ -{ runCommand, npins, pins }: +{ stdenvNoCC, npins, pins }: let src = npins.mkSource pins.stevenblack; in -runCommand "stevenblack-hosts-${pins.stevenblack.version}" {} '' - cp ${src}/hosts $out -'' +stdenvNoCC.mkDerivation { + pname = "stevenblack-hosts"; + inherit (pins.stevenblack) version; + buildCommand = '' + cp ${src}/hosts $out + ''; +}