mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
02297beade
Lots of packages are missing versions in their name. This adds them where appropriate. These were found with this command: $ nix-env -qa -f. | grep -v '\-[0-9A-Za-z.-_+]*$' | grep -v '^hook$' See issue #41007.
47 lines
1.3 KiB
Nix
47 lines
1.3 KiB
Nix
{ stdenv, fetchurl, unzip }:
|
||
|
||
stdenv.mkDerivation rec {
|
||
version = "1.2.1";
|
||
|
||
name = "meslo-lg-${version}";
|
||
|
||
meslo-lg = fetchurl {
|
||
url="https://github.com/andreberg/Meslo-Font/blob/master/dist/v${version}/Meslo%20LG%20v${version}.zip?raw=true";
|
||
name="${name}";
|
||
sha256="1l08mxlzaz3i5bamnfr49s2k4k23vdm64b8nz2ha33ysimkbgg6h";
|
||
};
|
||
|
||
meslo-lg-dz = fetchurl {
|
||
url="https://github.com/andreberg/Meslo-Font/blob/master/dist/v${version}/Meslo%20LG%20DZ%20v${version}.zip?raw=true";
|
||
name="${name}-dz";
|
||
sha256="0lnbkrvcpgz9chnvix79j6fiz36wj6n46brb7b1746182rl1l875";
|
||
};
|
||
|
||
nativeBuildInputs = [ unzip ];
|
||
|
||
sourceRoot = ".";
|
||
|
||
phases = [ "unpackPhase" "installPhase" ];
|
||
unpackPhase = ''
|
||
unzip -j ${meslo-lg}
|
||
unzip -j ${meslo-lg-dz}
|
||
'';
|
||
|
||
installPhase = ''
|
||
mkdir -p $out/share/fonts/truetype
|
||
cp *.ttf $out/share/fonts/truetype
|
||
'';
|
||
|
||
outputHashAlgo = "sha256";
|
||
outputHashMode = "recursive";
|
||
outputHash = "1cppf8sk6r5wjnnas9n6iyag6pj9jvaic66lvwpqg3742s5akx6x";
|
||
|
||
meta = {
|
||
description = "A customized version of Apple’s Menlo-Regular font";
|
||
homepage = https://github.com/andreberg/Meslo-Font/;
|
||
license = stdenv.lib.licenses.asl20;
|
||
maintainers = with stdenv.lib.maintainers; [ balajisivaraman ];
|
||
platforms = with stdenv.lib.platforms; all;
|
||
};
|
||
}
|