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; };