nix-conf-xmonad/modules/xmonad/gifs.nix

13 lines
285 B
Nix
Raw Normal View History

2021-12-07 15:56:20 +02:00
{ 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}
''