about summary refs log tree commit diff
path: root/pkgs/by-name/sn
diff options
context:
space:
mode:
authorCole Mickens <cole.mickens@gmail.com>2024-02-21 20:46:18 -0600
committerCole Mickens <cole.mickens@gmail.com>2024-03-31 15:20:54 -0700
commit2bc8d8f5e662ae91994bb5e7895cdaeecf6c750f (patch)
treed418825f0947e8a1c4b0e7b25d75566b39b7c89a /pkgs/by-name/sn
parente0dd3ae0c35f7adf1e24c9e1e8011f30345547aa (diff)
sn-pro: init at 1.1.0
Diffstat (limited to 'pkgs/by-name/sn')
-rw-r--r--pkgs/by-name/sn/sn-pro/package.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/by-name/sn/sn-pro/package.nix b/pkgs/by-name/sn/sn-pro/package.nix
new file mode 100644
index 0000000000000..b8e431c6efcfa
--- /dev/null
+++ b/pkgs/by-name/sn/sn-pro/package.nix
@@ -0,0 +1,30 @@
+{ lib, stdenvNoCC, fetchFromGitHub }:
+
+stdenvNoCC.mkDerivation rec {
+  pname = "sn-pro";
+  version = "1.1.0";
+
+  src = fetchFromGitHub {
+    owner = "supernotes";
+    repo = "sn-pro";
+    rev = version;
+    hash = "sha256-G/DIHWs91HYVbrV/jZ4aFsCCjqORo8YeqcHGN0LZ8p4=";
+  };
+
+  installPhase = ''
+    runHook preInstall
+
+    install -Dm644 -t $out/share/fonts/otf exports/SNPro/*.otf
+    install -Dm644 -t $out/share/fonts/woff2 exports/SNPro/*.woff2
+
+    runHook postInstall
+  '';
+
+  meta = with lib; {
+    description = "SN Pro Font Family";
+    homepage = "https://github.com/supernotes/sn-pro";
+    license = licenses.ofl;
+    maintainers = with maintainers; [ colemickens ];
+    platforms = platforms.all;
+  };
+}