forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / by-name / is / iso-flags / package.nix
blob9deff6bcc77ec2ff361199d70e409835b0cecee7
1 { lib, stdenvNoCC
2 , fetchFromGitHub
3 , perl
4 , inkscape
5 , librsvg
6 , targets ? [ "all" ]
7 }:
9 stdenvNoCC.mkDerivation {
10   pname = "iso-flags";
11   version = "unstable-18012020";
13   src = fetchFromGitHub {
14     owner = "joielechong";
15     repo = "iso-country-flags-svg-collection";
16     rev = "9ebbd577b9a70fbfd9a1931be80c66e0d2f31a9d";
17     sha256 = "17bm7w4md56xywixfvp7vr3d6ihvxk3383i9i4rpmgm6qa9dyxdl";
18   };
20   nativeBuildInputs = [
21     perl
22     inkscape
23     librsvg
24     (perl.withPackages(pp: with pp; [ JSON XMLLibXML ]))
25   ];
27   postPatch = ''
28     patchShebangs .
29   '';
31   buildFlags = targets;
33   installPhase = ''
34     mkdir -p $out/share
35     mv build $out/share/iso-flags
36   '';
38   meta = with lib; {
39     homepage = "https://github.com/joielechong/iso-country-flags-svg-collection";
40     description = "248 country flag SVG & PNG icons with different icon styles";
41     license = [ licenses.publicDomain ];
42     platforms = platforms.linux; # the output assets should work anywhere, but unsure about the tools to build them...
43     maintainers = [ maintainers.mkg20001 ];
44   };