iso-flags: init at unstable-18012020
Co-authored-by: Jan Tojnar <jtojnar@gmail.com>
This commit is contained in:
parent
4eb9188da6
commit
e5b0918395
47
pkgs/data/icons/iso-flags/default.nix
Normal file
47
pkgs/data/icons/iso-flags/default.nix
Normal file
@ -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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -12937,6 +12937,8 @@ in
|
|||||||
|
|
||||||
isocodes = callPackage ../development/libraries/iso-codes { };
|
isocodes = callPackage ../development/libraries/iso-codes { };
|
||||||
|
|
||||||
|
iso-flags = callPackage ../data/icons/iso-flags { };
|
||||||
|
|
||||||
ispc = callPackage ../development/compilers/ispc {
|
ispc = callPackage ../development/compilers/ispc {
|
||||||
stdenv = llvmPackages_10.stdenv;
|
stdenv = llvmPackages_10.stdenv;
|
||||||
llvmPackages = llvmPackages_10;
|
llvmPackages = llvmPackages_10;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user