Add custom package support
This commit is contained in:
8
pkgs/default.nix
Normal file
8
pkgs/default.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ lib, pkgs }:
|
||||
let
|
||||
inherit (pkgs) callPackage;
|
||||
in
|
||||
{
|
||||
# yeah turns out this is in nixpkgs now... we'll leave it as a sample i guess lol
|
||||
monocraft' = callPackage ./monocraft.nix { };
|
||||
}
|
25
pkgs/monocraft.nix
Normal file
25
pkgs/monocraft.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ lib, fetchFromGitHub }:
|
||||
fetchFromGitHub rec {
|
||||
pname = "monocraft";
|
||||
version = "1.4";
|
||||
|
||||
owner = "IdreesInc";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
|
||||
postFetch = ''
|
||||
install -Dm444 -t $out/share/fonts/opentype/ $out/Monocraft.otf
|
||||
shopt -s extglob dotglob
|
||||
rm -rf $out/!(share)
|
||||
shopt -u extglob dotglob
|
||||
'';
|
||||
hash = "sha256-e/kLeYK9//iw+8XOfC0bocldhFGojGApT/EtNtdf4tc=";
|
||||
|
||||
meta = with lib; {
|
||||
description = "A programming font based on the typeface used in Minecraft";
|
||||
homepage = "https://github.com/${owner}/${repo}";
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.devplayer0 ];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user