Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 45 lines 1.1 kB view raw
1{ lib, stdenvNoCC 2, fetchFromGitHub 3, perl 4, inkscape 5, librsvg 6, targets ? [ "all" ] 7}: 8 9stdenvNoCC.mkDerivation { 10 pname = "iso-flags"; 11 version = "unstable-18012020"; 12 13 src = fetchFromGitHub { 14 owner = "joielechong"; 15 repo = "iso-country-flags-svg-collection"; 16 rev = "9ebbd577b9a70fbfd9a1931be80c66e0d2f31a9d"; 17 sha256 = "17bm7w4md56xywixfvp7vr3d6ihvxk3383i9i4rpmgm6qa9dyxdl"; 18 }; 19 20 nativeBuildInputs = [ 21 perl 22 inkscape 23 librsvg 24 (perl.withPackages(pp: with pp; [ JSON XMLLibXML ])) 25 ]; 26 27 postPatch = '' 28 patchShebangs . 29 ''; 30 31 buildFlags = targets; 32 33 installPhase = '' 34 mkdir -p $out/share 35 mv build $out/share/iso-flags 36 ''; 37 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 }; 45}