From 185187f9936cabd9324e143e0507cef9a01de3d4 Mon Sep 17 00:00:00 2001 From: LinArcX Date: Mon, 8 Apr 2019 17:49:41 +0430 Subject: [PATCH] shabnam-fonts: init at v4.0.0 (#58446) --- pkgs/data/fonts/shabnam-fonts/default.nix | 26 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/data/fonts/shabnam-fonts/default.nix diff --git a/pkgs/data/fonts/shabnam-fonts/default.nix b/pkgs/data/fonts/shabnam-fonts/default.nix new file mode 100644 index 000000000000..cf4bd3722299 --- /dev/null +++ b/pkgs/data/fonts/shabnam-fonts/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + name = "shabnam-fonts"; + version = "4.0.0"; + + src = fetchFromGitHub { + owner = "rastikerdar"; + repo = "shabnam-font"; + rev = "v${version}"; + sha256 = "1y4w16if2y12028b9vyc5l5c5bvcglhxacv380ixb8fcc4hfakmb"; + }; + + installPhase = '' + mkdir -p $out/share/fonts/shabnam-fonts + cp -v $( find . -name '*.ttf') $out/share/fonts/shabnam-fonts + ''; + + meta = with stdenv.lib; { + homepage = https://github.com/rastikerdar/shabnam-font; + description = "A Persian (Farsi) Font - فونت (قلم) فارسی شبنم"; + license = licenses.ofl; + platforms = platforms.all; + maintainers = [ maintainers.linarcx ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 388cb23a5fdb..1e53daef5a6a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5517,6 +5517,8 @@ in shadowsocks-libev = callPackage ../tools/networking/shadowsocks-libev { }; + shabnam-fonts = callPackage ../data/fonts/shabnam-fonts { }; + shadowsocks-rust = callPackage ../tools/networking/shadowsocks-rust { inherit (darwin.apple_sdk.frameworks) Security; };