mirror of
https://github.com/EdenQwQ/nixos.git
synced 2025-12-26 18:34:56 +08:00
init
This commit is contained in:
commit
96895ec3aa
100 changed files with 6349 additions and 0 deletions
23
pkgs/edenfetch.nix
Normal file
23
pkgs/edenfetch.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
rustPlatform,
|
||||
}:
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = "edenfetch";
|
||||
version = "0.1.0";
|
||||
src = fetchFromGitHub {
|
||||
owner = "EdenQwQ";
|
||||
repo = "edenfetch";
|
||||
rev = "ae6cc1207990e35288ed4a58caa21564bf1df9c3";
|
||||
hash = "sha256-ipdz6tIB7BF43lwk+KN+9orW0FLt7HJsCZuN2wbe6Is=";
|
||||
};
|
||||
useFetchCargoVendor = true;
|
||||
cargoHash = "sha256-t+tHvhTMwQwmozit6vcqE9iRZElaG4wJdzg79gcBJNY=";
|
||||
meta = {
|
||||
description = "edenfetch is a minimal fetch program written in Rust.";
|
||||
homepage = "https://github.com/EdenQwQ/edenfetch";
|
||||
mainProgram = "edenfetch";
|
||||
maintainers = with lib.maintainers; [ EdenQwQ ];
|
||||
};
|
||||
}
|
||||
30
pkgs/fonts/hugmetight.nix
Normal file
30
pkgs/fonts/hugmetight.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
pkgs,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "kose-font";
|
||||
version = "2025-03-01";
|
||||
|
||||
src = pkgs.fetchzip {
|
||||
url = "https://mistifonts.com/fonts/hug-me-tight.zip";
|
||||
sha256 = "sha256-GLcAKu9AeYZ8j285ykiwx31Qoja6tZCXQR88CTu27UY=";
|
||||
stripRoot = false;
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/fonts
|
||||
cp *.ttf $out/share/fonts
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "The Hug Me Tight font";
|
||||
maintainers = with maintainers; [ EdenQwQ ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
46
pkgs/fonts/kose.nix
Normal file
46
pkgs/fonts/kose.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
pkgs,
|
||||
}:
|
||||
let
|
||||
mono = pkgs.fetchurl {
|
||||
name = "XiaolaiMonoSC-Regular.ttf";
|
||||
url = "https://github.com/lxgw/kose-font/releases/download/v3.120/XiaolaiMonoSC-Regular.ttf";
|
||||
sha256 = "1wxjjvd6dr9va6i65rl5nsjmxmzpm7xz4pnr0afs9n4v6vgvpq51";
|
||||
};
|
||||
regular = pkgs.fetchurl {
|
||||
name = "XiaolaiSC-Regular";
|
||||
url = "https://github.com/lxgw/kose-font/releases/download/v3.120/XiaolaiSC-Regular.ttf";
|
||||
sha256 = "0zr043nj3prw5v4znarhzi1jigr7f6lxnajsrj10gzqaxf4wdq35";
|
||||
};
|
||||
in
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "kose-font";
|
||||
version = "2025-02-22";
|
||||
|
||||
srcs = [
|
||||
mono
|
||||
regular
|
||||
];
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/fonts
|
||||
cp ${mono} $out/share/fonts
|
||||
cp ${regular} $out/share/fonts
|
||||
|
||||
mkdir -p $out/etc/fonts/conf.d
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "The Kose font";
|
||||
maintainers = with maintainers; [ EdenQwQ ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
27
pkgs/zju-connect.nix
Normal file
27
pkgs/zju-connect.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
...
|
||||
}:
|
||||
buildGoModule rec {
|
||||
pname = "zju-connect";
|
||||
version = "0.8.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Mythologyli";
|
||||
repo = "ZJU-Connect";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-8QMdesmveXHmAKhuISmAE75La/KeybFqYSfAACfmIJE=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-ANb3zcZCMqg6iO79q9CQEEN8DH0cwb7bAs3YmhfGTz8=";
|
||||
|
||||
meta = {
|
||||
description = "ZJU RVPN client";
|
||||
homepage = "https://github.com/Mythologyli/ZJU-Connect";
|
||||
mainProgram = "zju-connect";
|
||||
license = lib.licenses.agpl3Only;
|
||||
maintainers = with lib.maintainers; [ EdenQwQ ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue