diff options
author | Aleksana <me@aleksana.moe> | 2024-05-17 11:17:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-17 11:17:54 +0800 |
commit | 85786b9e252d2214c66f4e78e965454403fe2a02 (patch) | |
tree | 41aae20707ff58f63ddd12afb52375e1e939b5ae /pkgs | |
parent | baf54cdc1df81f72081e35e82a17fc01bd605aa2 (diff) | |
parent | 7db4467e36a1a24456b5ff68eb7f43ee46d947e3 (diff) |
Merge pull request #311743 from Coca162/miracode-1.0
miracode: init at 1.0
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/by-name/mi/miracode/package.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/by-name/mi/miracode/package.nix b/pkgs/by-name/mi/miracode/package.nix new file mode 100644 index 0000000000000..4dc1ad3f4eb3b --- /dev/null +++ b/pkgs/by-name/mi/miracode/package.nix @@ -0,0 +1,32 @@ +{ stdenvNoCC, lib, fetchurl }: + +let + version = "1.0"; +in +stdenvNoCC.mkDerivation { + pname = "miracode"; + inherit version; + + src = fetchurl { + url = "https://github.com/IdreesInc/Miracode/releases/download/v${version}/Miracode.ttf"; + hash = "sha256-Q+/D/TPlqOt779qYS/dF7ahEd3Mm4a4G+wdHB+Gutmo="; + }; + + dontUnpack = true; + dontConfigure = true; + dontBuild = true; + + installPhase = '' + runHook preInstall + install -Dm644 $src $out/share/fonts/truetype/Miracode.ttf + runHook postInstall + ''; + + meta = with lib; { + description = "A sharp, readable, vector-y version of Monocraft"; + homepage = "https://github.com/IdreesInc/Miracode"; + license = licenses.ofl; + platforms = platforms.all; + maintainers = with maintainers; [ coca ]; + }; +} |