mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-23 13:48:21 +03:00
twemoji-color-font: use finalAttrs pattern
This commit is contained in:
parent
08334dba1d
commit
de0d9fb923
@ -3,14 +3,14 @@
|
|||||||
, fetchurl
|
, fetchurl
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "twemoji-color-font";
|
pname = "twemoji-color-font";
|
||||||
version = "14.0.2";
|
version = "14.0.2";
|
||||||
|
|
||||||
# We fetch the prebuilt font because building it takes 1.5 hours on hydra.
|
# We fetch the prebuilt font because building it takes 1.5 hours on hydra.
|
||||||
# Relevant issue: https://github.com/NixOS/nixpkgs/issues/97871
|
# Relevant issue: https://github.com/NixOS/nixpkgs/issues/97871
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/eosrei/twemoji-color-font/releases/download/v${version}/TwitterColorEmoji-SVGinOT-Linux-${version}.tar.gz";
|
url = "https://github.com/eosrei/twemoji-color-font/releases/download/v${finalAttrs.version}/TwitterColorEmoji-SVGinOT-Linux-${finalAttrs.version}.tar.gz";
|
||||||
sha256 = "sha256-aCbiHqCNxd8myIeuTlYEaYfg9JCd+MAsc94FcUoDU8E=";
|
sha256 = "sha256-aCbiHqCNxd8myIeuTlYEaYfg9JCd+MAsc94FcUoDU8E=";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -39,4 +39,4 @@ stdenv.mkDerivation rec {
|
|||||||
license = with licenses; [ cc-by-40 mit ];
|
license = with licenses; [ cc-by-40 mit ];
|
||||||
maintainers = [ maintainers.fgaz ];
|
maintainers = [ maintainers.fgaz ];
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user