13 lines
285 B
Nix
13 lines
285 B
Nix
{ runCommand, fetchurl, lib }:
|
|
|
|
let
|
|
resources = import ./animated.nix { inherit fetchurl; };
|
|
copy = key: value: "cp ${value} $out/${key}";
|
|
copyResources = with lib; concatStringsSep "\n" (mapAttrsToList copy resources);
|
|
in
|
|
runCommand "gifs" {} ''
|
|
mkdir $out
|
|
|
|
${copyResources}
|
|
''
|