Skip to content

Commit

Permalink
Merge pull request #24857 from sphaugh/master
Browse files Browse the repository at this point in the history
envypn: init at 1.7.1 (+ MirOS license)
  • Loading branch information
Mic92 committed Apr 13, 2017
2 parents 60b588a + c919ced commit d8e810e
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/licenses.nix
Expand Up @@ -357,6 +357,11 @@ lib.mapAttrs (n: v: v // { shortName = n; }) rec {
fullName = "Lucent Public License v1.02";
};

miros = {
fullname = "MirOS License";
url = https://opensource.org/licenses/MirOS;
};

# spdx.org does not (yet) differentiate between the X11 and Expat versions
# for details see http://en.wikipedia.org/wiki/MIT_License#Various_versions
mit = spdx {
Expand Down
36 changes: 36 additions & 0 deletions pkgs/data/fonts/envypn-font/default.nix
@@ -0,0 +1,36 @@
{ stdenv, fetchurl, mkfontdir, mkfontscale }:

stdenv.mkDerivation rec {
name = "envypn-font-1.7.1";

src = fetchurl {
url = "https://ywstd.fr/files/p/envypn-font/envypn-font-1.7.1.tar.gz";
sha256 = "bda67b6bc6d5d871a4d46565d4126729dfb8a0de9611dae6c68132a7b7db1270";
};

buildInputs = [ mkfontdir mkfontscale ];

unpackPhase = ''
tar -xzf $src --strip-components=1
'';

installPhase = ''
# install the pcf fonts (for xorg applications)
fontDir="$out/share/fonts/envypn"
mkdir -p "$fontDir"
mv *.pcf.gz "$fontDir"
cd "$fontDir"
mkfontdir
mkfontscale
'';

meta = with stdenv.lib; {
description = ''
Readable bitmap font inspired by Envy Code R
'';
homepage = "http://ywstd.fr/p/pj/#envypn";
license = licenses.miros;
platforms = platforms.linux;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -12439,6 +12439,8 @@ with pkgs;

encode-sans = callPackage ../data/fonts/encode-sans { };

envypn-font = callPackage ../data/fonts/envypn-font { };

fantasque-sans-mono = callPackage ../data/fonts/fantasque-sans-mono {};

fira = callPackage ../data/fonts/fira { };
Expand Down

0 comments on commit d8e810e

Please sign in to comment.