Skip to content

Commit e5b0918

Browse files
mkg20001jtojnar
authored andcommitted
iso-flags: init at unstable-18012020
Co-authored-by: Jan Tojnar <jtojnar@gmail.com>
1 parent 4eb9188 commit e5b0918

2 files changed

Lines changed: 49 additions & 0 deletions

File tree

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{ stdenv
2+
, fetchFromGitHub
3+
, perl
4+
, perlPackages
5+
, inkscape
6+
, pngcrush
7+
, librsvg
8+
, targets ? [ "all" ]
9+
}:
10+
11+
stdenv.mkDerivation {
12+
pname = "iso-flags";
13+
version = "unstable-18012020";
14+
15+
src = fetchFromGitHub {
16+
owner = "joielechong";
17+
repo = "iso-country-flags-svg-collection";
18+
rev = "9ebbd577b9a70fbfd9a1931be80c66e0d2f31a9d";
19+
sha256 = "17bm7w4md56xywixfvp7vr3d6ihvxk3383i9i4rpmgm6qa9dyxdl";
20+
};
21+
22+
nativeBuildInputs = [
23+
perl
24+
inkscape
25+
librsvg
26+
(perl.withPackages(pp: with pp; [ JSON XMLLibXML ]))
27+
];
28+
29+
postPatch = ''
30+
patchShebangs .
31+
'';
32+
33+
buildFlags = targets;
34+
35+
installPhase = ''
36+
mkdir -p $out/share
37+
mv build $out/share/iso-flags
38+
'';
39+
40+
meta = with stdenv.lib; {
41+
homepage = "https://github.com/joielechong/iso-country-flags-svg-collection";
42+
description = "248 country flag SVG & PNG icons with different icon styles";
43+
license = [ licenses.publicDomain ];
44+
platforms = platforms.linux; # the output assets should work anywhere, but unsure about the tools to build them...
45+
maintainers = [ maintainers.mkg20001 ];
46+
};
47+
}

pkgs/top-level/all-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12937,6 +12937,8 @@ in
1293712937

1293812938
isocodes = callPackage ../development/libraries/iso-codes { };
1293912939

12940+
iso-flags = callPackage ../data/icons/iso-flags { };
12941+
1294012942
ispc = callPackage ../development/compilers/ispc {
1294112943
stdenv = llvmPackages_10.stdenv;
1294212944
llvmPackages = llvmPackages_10;

0 commit comments

Comments
 (0)