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