From 969433f229371c522c51d9216fdfefd95a1a59c6 Mon Sep 17 00:00:00 2001 From: Michiel Leenaars Date: Thu, 30 Jun 2016 09:44:22 +0200 Subject: [PATCH] norwester-font: init at 1.2 --- pkgs/data/fonts/norwester/default.nix | 29 +++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/data/fonts/norwester/default.nix diff --git a/pkgs/data/fonts/norwester/default.nix b/pkgs/data/fonts/norwester/default.nix new file mode 100644 index 000000000000..cc2a2617f344 --- /dev/null +++ b/pkgs/data/fonts/norwester/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchurl, unzip }: + +stdenv.mkDerivation rec { + pname = "norwester"; + version = "1.2"; + name = "${pname}-${version}"; + + src = fetchurl { + url = "http://jamiewilson.io/norwester/assets/norwester.zip"; + sha256 = "0syg8ss7mpli4cbxvh3ld7qrlbhb2dfv3wchm765iw6ndc05g92d"; + }; + + phases = [ "installPhase" ]; + + buildInputs = [ unzip ]; + + installPhase = '' + mkdir -p $out/share/fonts/opentype + unzip -D -j $src ${pname}-v${version}/${pname}.otf -d $out/share/fonts/opentype/ + ''; + + meta = with stdenv.lib; { + homepage = "http://jamiewilson.io/norwester"; + description = "A condensed geometric sans serif by Jamie Wilson"; + maintainers = with maintainers; [ leenaars ]; + license = licenses.ofl; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b2cbe0fd03fc..5cbdeffe19ac 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16755,6 +16755,8 @@ in nixos-artwork = callPackage ../data/misc/nixos-artwork { }; + norwester-font = callPackage ../data/fonts/norwester {}; + nut = callPackage ../applications/misc/nut { }; solfege = callPackage ../misc/solfege {