diff options
author | Volth <volth@webmaster.ms> | 2017-08-10 19:43:49 +0000 |
---|---|---|
committer | Volth <volth@webmaster.ms> | 2017-08-11 14:26:03 +0000 |
commit | 31c344982f0c47af4d33cb5a37125deb1d767ef0 (patch) | |
tree | 66227ecc2adcf14cc1a552364eb8940358199f5a /pkgs/data/fonts/overpass | |
parent | 691da0cbb99c7b72480bc836b11cc296739edaee (diff) |
data/fonts: simpler cleanups
Diffstat (limited to 'pkgs/data/fonts/overpass')
-rw-r--r-- | pkgs/data/fonts/overpass/default.nix | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/pkgs/data/fonts/overpass/default.nix b/pkgs/data/fonts/overpass/default.nix index e24d61d5ba1ca..8bb4e82747add 100644 --- a/pkgs/data/fonts/overpass/default.nix +++ b/pkgs/data/fonts/overpass/default.nix @@ -1,27 +1,19 @@ -{ stdenv, fetchFromGitHub, unzip }: +{ stdenv, fetchzip }: -stdenv.mkDerivation rec { - name = "overpass-${version}"; +let version = "3.0.2"; +in fetchzip rec { + name = "overpass-${version}"; - src = fetchFromGitHub { - owner = "RedHatBrand"; - repo = "Overpass"; - rev = version; - sha256 = "1bgmnhdfmp4rycyadcnzw62vkvn63nn29pq9vbjf4c9picvl8ah6"; - }; - - nativeBuildInputs = [ unzip ]; - - phases = [ "unpackPhase" "installPhase" ]; + url = "https://github.com/RedHatBrand/Overpass/archive/${version}.zip"; - installPhase = '' - mkdir -p $out/share/doc/${name} - mkdir -p $out/share/fonts/opentype - cp -v "desktop-fonts/"*"/"*.otf $out/share/fonts/opentype - cp -v LICENSE.md README.md $out/share/doc/${name} + postFetch = '' + mkdir -p $out/share/fonts/opentype ; unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype + mkdir -p $out/share/doc/${name} ; unzip -j $downloadedFile \*.md -d $out/share/doc/${name} ''; + sha256 = "05zv3zcfc9a707sn3hhf46b126k19d9byzvi5ixp5y2548vjvl6s"; + meta = with stdenv.lib; { homepage = http://overpassfont.org/; description = "Font heavily inspired by Highway Gothic"; |