diff options
author | Maciej Krüger <mkg20001@gmail.com> | 2020-04-26 19:58:58 +0200 |
---|---|---|
committer | worldofpeace <worldofpeace@protonmail.ch> | 2020-09-05 14:03:01 -0400 |
commit | e5b0918395cc13bea2b35c780802cb502a2c3900 (patch) | |
tree | 82653fdf3cf6e0940f2ae5d865cf540d948df2b9 /pkgs/data/icons | |
parent | 4eb9188da609619800e36c445dac5a21c6108395 (diff) |
iso-flags: init at unstable-18012020
Co-authored-by: Jan Tojnar <jtojnar@gmail.com>
Diffstat (limited to 'pkgs/data/icons')
-rw-r--r-- | pkgs/data/icons/iso-flags/default.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/data/icons/iso-flags/default.nix b/pkgs/data/icons/iso-flags/default.nix new file mode 100644 index 000000000000..b329a151c728 --- /dev/null +++ b/pkgs/data/icons/iso-flags/default.nix @@ -0,0 +1,47 @@ +{ stdenv +, fetchFromGitHub +, perl +, perlPackages +, inkscape +, pngcrush +, librsvg +, targets ? [ "all" ] +}: + +stdenv.mkDerivation { + pname = "iso-flags"; + version = "unstable-18012020"; + + src = fetchFromGitHub { + owner = "joielechong"; + repo = "iso-country-flags-svg-collection"; + rev = "9ebbd577b9a70fbfd9a1931be80c66e0d2f31a9d"; + sha256 = "17bm7w4md56xywixfvp7vr3d6ihvxk3383i9i4rpmgm6qa9dyxdl"; + }; + + nativeBuildInputs = [ + perl + inkscape + librsvg + (perl.withPackages(pp: with pp; [ JSON XMLLibXML ])) + ]; + + postPatch = '' + patchShebangs . + ''; + + buildFlags = targets; + + installPhase = '' + mkdir -p $out/share + mv build $out/share/iso-flags + ''; + + meta = with stdenv.lib; { + homepage = "https://github.com/joielechong/iso-country-flags-svg-collection"; + description = "248 country flag SVG & PNG icons with different icon styles"; + license = [ licenses.publicDomain ]; + platforms = platforms.linux; # the output assets should work anywhere, but unsure about the tools to build them... + maintainers = [ maintainers.mkg20001 ]; + }; +} |