summaryrefslogtreecommitdiffstats
path: root/pkgs/data/fonts/fontconfig-penultimate/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/data/fonts/fontconfig-penultimate/default.nix')
-rw-r--r--pkgs/data/fonts/fontconfig-penultimate/default.nix17
1 files changed, 7 insertions, 10 deletions
diff --git a/pkgs/data/fonts/fontconfig-penultimate/default.nix b/pkgs/data/fonts/fontconfig-penultimate/default.nix
index 360cacb551d7..da1c4467036b 100644
--- a/pkgs/data/fonts/fontconfig-penultimate/default.nix
+++ b/pkgs/data/fonts/fontconfig-penultimate/default.nix
@@ -1,21 +1,18 @@
-{ stdenv, fetchFromGitHub }:
+{ stdenv, fetchzip }:
let version = "0.3.5"; in
-stdenv.mkDerivation {
+fetchzip {
name = "fontconfig-penultimate-${version}";
- src = fetchFromGitHub {
- owner = "ttuegel";
- repo = "fontconfig-penultimate";
- rev = version;
- sha256 = "1xi664bs6n687s972nch87hi0iqkd6gr1l76zl58pymiw2132ks8";
- };
+ url = "https://github.com/ttuegel/fontconfig-penultimate/archive/${version}.zip";
- installPhase = ''
+ postFetch = ''
mkdir -p $out/etc/fonts/conf.d
- cp *.conf $out/etc/fonts/conf.d
+ unzip -j $downloadedFile \*.conf -d $out/etc/fonts/conf.d
'';
+ sha256 = "1gfgl7qimp76q4z0nv55vv57yfs4kscdr329np701k0xnhncwvrk";
+
meta = with stdenv.lib; {
homepage = https://github.com/ttuegel/fontconfig-penultimate;
description = "Sensible defaults for Fontconfig";