summary refs log tree commit diff
path: root/pkgs/data/icons/iso-flags
diff options
context:
space:
mode:
authorMaciej Krüger <mkg20001@gmail.com>2020-04-26 19:58:58 +0200
committerworldofpeace <worldofpeace@protonmail.ch>2020-09-05 14:03:01 -0400
commite5b0918395cc13bea2b35c780802cb502a2c3900 (patch)
tree82653fdf3cf6e0940f2ae5d865cf540d948df2b9 /pkgs/data/icons/iso-flags
parent4eb9188da609619800e36c445dac5a21c6108395 (diff)
downloadnixpkgs-e5b0918395cc13bea2b35c780802cb502a2c3900.tar
nixpkgs-e5b0918395cc13bea2b35c780802cb502a2c3900.tar.gz
nixpkgs-e5b0918395cc13bea2b35c780802cb502a2c3900.tar.bz2
nixpkgs-e5b0918395cc13bea2b35c780802cb502a2c3900.tar.lz
nixpkgs-e5b0918395cc13bea2b35c780802cb502a2c3900.tar.xz
nixpkgs-e5b0918395cc13bea2b35c780802cb502a2c3900.tar.zst
nixpkgs-e5b0918395cc13bea2b35c780802cb502a2c3900.zip
iso-flags: init at unstable-18012020
Co-authored-by: Jan Tojnar <jtojnar@gmail.com>
Diffstat (limited to 'pkgs/data/icons/iso-flags')
-rw-r--r--pkgs/data/icons/iso-flags/default.nix47
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 00000000000..b329a151c72
--- /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 ];
+  };
+}