packages/stevenblack-hosts: convert to mkDerivation

This commit is contained in:
Max Headroom 2022-07-30 19:48:40 +02:00
parent d2b5c50380
commit fe05355c46

View file

@ -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
'';
}