1{
2 stdenvNoCC,
3 lib,
4 fetchFromGitHub,
5 nix-update-script,
6}:
7
8stdenvNoCC.mkDerivation (finalAttrs: {
9 pname = "circle-flags";
10 version = "2.7.0";
11
12 src = fetchFromGitHub {
13 owner = "HatScripts";
14 repo = "circle-flags";
15 rev = "v${finalAttrs.version}";
16 hash = "sha256-/+f5MDRW+tRH+jMtl3XuVPBShgy2PlD3NY+74mJa2Qk=";
17 };
18
19 installPhase = ''
20 runHook preInstall
21
22 mkdir -p $out/share
23 mv flags $out/share/circle-flags-svg
24
25 runHook postInstall
26 '';
27
28 passthru.updateScript = nix-update-script { };
29
30 meta = with lib; {
31 homepage = "https://github.com/HatScripts/circle-flags";
32 description = "Collection of 400+ minimal circular SVG country and state flags";
33 license = licenses.mit;
34 maintainers = with maintainers; [ bobby285271 ];
35 platforms = platforms.all;
36 };
37})