oldsindhi: use installFonts, cleanup (#523749)
This commit is contained in:
@@ -2,24 +2,22 @@
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchurl,
|
||||
installFonts,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "oldsindhi";
|
||||
version = "1.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/MihailJP/${pname}/releases/download/v${version}/OldSindhi-${version}.tar.xz";
|
||||
url = "https://github.com/MihailJP/oldsindhi/releases/download/v${finalAttrs.version}/OldSindhi-${finalAttrs.version}.tar.xz";
|
||||
hash = "sha256-jOcl+mo6CJ9Lnn3nAUiXXHCJssovVgLoPrbGxj4uzQs=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
nativeBuildInputs = [ installFonts ];
|
||||
|
||||
install -m444 -Dt $out/share/fonts/truetype *.ttf
|
||||
install -m444 -Dt $out/share/doc/${pname}-${version} README *.txt
|
||||
|
||||
runHook postInstall
|
||||
postInstall = ''
|
||||
install -m444 -Dt $out/share/doc/${finalAttrs.pname}-${finalAttrs.version} README *.txt
|
||||
'';
|
||||
|
||||
meta = {
|
||||
@@ -32,4 +30,4 @@ stdenvNoCC.mkDerivation rec {
|
||||
];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user