Use packagesFromDirectoryRecursive to improve package building

This commit is contained in:
ulic-youthlic 2025-07-12 23:57:53 +08:00
parent 57dafbe7e1
commit 8aa578123c
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
10 changed files with 27 additions and 33 deletions

View file

@ -1,277 +0,0 @@
{
"OuterWildsTextAdventure": {
"cargoLocks": null,
"date": "2024-12-21",
"extract": null,
"name": "OuterWildsTextAdventure",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"owner": "top-mind",
"repo": "OuterWildsTextAdventureWeb",
"rev": "2a4430a6e53fc2e9979e0f4ebb312d90b92ba119",
"sha256": "sha256-sINGUxPj3V257zbuMnT/TK2j8Bwj9Rck4uXx7Y1fTQY=",
"sparseCheckout": [],
"type": "github"
},
"version": "2a4430a6e53fc2e9979e0f4ebb312d90b92ba119"
},
"TrackersListCollection": {
"cargoLocks": null,
"date": "2025-07-10",
"extract": null,
"name": "TrackersListCollection",
"passthru": null,
"pinned": true,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"owner": "XIU2",
"repo": "TrackersListCollection",
"rev": "90e0bda7bb2db72793260ad5e62c890232d4a5f1",
"sha256": "sha256-aiRFQfHA3/cCFwK0WCP6D+Z4Op375ldfem7tyuZ4cOY=",
"sparseCheckout": [
"all.txt"
],
"type": "github"
},
"version": "90e0bda7bb2db72793260ad5e62c890232d4a5f1"
},
"cliphist": {
"cargoLocks": null,
"date": "2025-06-28",
"extract": null,
"name": "cliphist",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"owner": "sentriz",
"repo": "cliphist",
"rev": "ff1d247e3521bd7ebcb6463f86349bab71440496",
"sha256": "sha256-VclmnL8cYWbstQ/6SvKBC5KGcUFaJ/oL6a0WawbNGMI=",
"sparseCheckout": [],
"type": "github"
},
"version": "ff1d247e3521bd7ebcb6463f86349bab71440496"
},
"juicity": {
"cargoLocks": null,
"date": "2025-06-30",
"extract": null,
"name": "juicity",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"rev": "412dbe43e091788c5464eb2d6e9c169bdf39f19c",
"sha256": "sha256-FU4+PXIyZS0RINEFD7Wylz9SOVEW9EnolaPGgZfhj9Y=",
"sparseCheckout": [],
"type": "git",
"url": "https://githuh.com/juicity/juicity"
},
"version": "412dbe43e091788c5464eb2d6e9c169bdf39f19c"
},
"noto-sans-cjk": {
"cargoLocks": null,
"date": null,
"extract": null,
"name": "noto-sans-cjk",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"owner": "notofonts",
"repo": "noto-cjk",
"rev": "Serif2.003",
"sha256": "sha256-UxbwdY2w3u6i1kBWwr5vMKvsnD3eCllN+kBrCH38KlY=",
"sparseCheckout": [
"Sans/OTC"
],
"type": "github"
},
"version": "Serif2.003"
},
"noto-serif-cjk": {
"cargoLocks": null,
"date": null,
"extract": null,
"name": "noto-serif-cjk",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"owner": "notofonts",
"repo": "noto-cjk",
"rev": "Serif2.003",
"sha256": "sha256-mfbBSdJrUCZiUUmsmndtEW6H3z6KfBn+dEftBySf2j4=",
"sparseCheckout": [
"Serif/OTC"
],
"type": "github"
},
"version": "Serif2.003"
},
"radicle-ci-broker": {
"cargoLocks": null,
"date": "2025-06-27",
"extract": null,
"name": "radicle-ci-broker",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"rev": "d5f684b2ec12dc875ec0278c8e2fe71faaa88d38",
"sha256": "sha256-Cow3VIeFovUBhARVj8azEVokydajjnLHokhk0pklBhQ=",
"sparseCheckout": [],
"type": "git",
"url": "https://seed.radicle.garden/zwTxygwuz5LDGBq255RA2CbNGrz8.git"
},
"version": "d5f684b2ec12dc875ec0278c8e2fe71faaa88d38"
},
"rime-yuhaostar": {
"cargoLocks": null,
"date": null,
"extract": null,
"name": "rime-yuhaostar",
"passthru": null,
"pinned": false,
"src": {
"name": "yustar_v3.9.0.zip",
"sha256": "sha256-matIAwJeC9F0WJJZ8Qq6hJjATrLqoHOpAGRyD0eqoa8=",
"type": "url",
"url": "https://github.com/forfudan/yuhao-ime-release/releases/download/v3.9.0/yuhao_star_xingchen_v3.9.0.zip"
},
"version": "v3.9.0"
},
"spotx": {
"cargoLocks": null,
"date": "2025-07-02",
"extract": null,
"name": "spotx",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"owner": "SpotX-Official",
"repo": "SpotX-Bash",
"rev": "a0df4fcaace5efc1b58acd39b2c4d1750bb81057",
"sha256": "sha256-H8AG9WOodmPFBoHGwZ8qs55bb4myyKrRLsUmepvzYtQ=",
"sparseCheckout": [],
"type": "github"
},
"version": "a0df4fcaace5efc1b58acd39b2c4d1750bb81057"
},
"tree-sitter-idris": {
"cargoLocks": null,
"date": "2024-11-05",
"extract": null,
"name": "tree-sitter-idris",
"passthru": {
"name": "idris"
},
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"rev": "c56a25cf57c68ff929356db25505c1cc4c7820f6",
"sha256": "sha256-aOAxb0KjhSwlNX/IDvGwEysYvImgUEIDeNDOWRl1qNk=",
"sparseCheckout": [],
"type": "git",
"url": "https://github.com/kayhide/tree-sitter-idris"
},
"version": "c56a25cf57c68ff929356db25505c1cc4c7820f6"
},
"wallpaper_hieda-no-akyuu-touhou.1920x1080.mp4": {
"cargoLocks": null,
"date": null,
"extract": null,
"name": "wallpaper_hieda-no-akyuu-touhou.1920x1080.mp4",
"passthru": null,
"pinned": false,
"src": {
"name": null,
"sha256": "sha256-NGlCqI92PFnMF/eyoCdWzJ0qDIkVhfkW46SpwV/iask=",
"type": "url",
"url": "http://wallpaper.youthlic.social/hieda-no-akyuu-touhou.1920x1080.mp4"
},
"version": "346942a88f763c59cc17f7b2a02756cc9d2a0c891585f916e3a4a9c15fe26ac9"
},
"wallpaper_hollow-knight-quest.3840x2160.mp4": {
"cargoLocks": null,
"date": null,
"extract": null,
"name": "wallpaper_hollow-knight-quest.3840x2160.mp4",
"passthru": null,
"pinned": false,
"src": {
"name": null,
"sha256": "sha256-7LsxB15+OHywOpA1KYorD7zlKdL03JG3vdqgivVwpBs=",
"type": "url",
"url": "http://wallpaper.youthlic.social/hollow-knight-quest.3840x2160.mp4"
},
"version": "ecbb31075e7e387cb03a9035298a2b0fbce529d2f4dc91b7bddaa08af570a41b"
},
"wallpaper_outer-wilds.3840x2160.mp4": {
"cargoLocks": null,
"date": null,
"extract": null,
"name": "wallpaper_outer-wilds.3840x2160.mp4",
"passthru": null,
"pinned": false,
"src": {
"name": null,
"sha256": "sha256-GeDMtISD9V80EyAXGOiyukpqzREuGj57ta2RO4fF8hA=",
"type": "url",
"url": "http://wallpaper.youthlic.social/outer-wilds.3840x2160.mp4"
},
"version": "19e0ccb48483f55f3413201718e8b2ba4a6acd112e1a3e7bb5ad913b87c5f210"
},
"wshowkeys-mao": {
"cargoLocks": null,
"date": "2025-06-04",
"extract": null,
"name": "wshowkeys-mao",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"owner": "DreamMaoMao",
"repo": "wshowkeys",
"rev": "bf18fba01eafd7659e242066abca0fd4938bf417",
"sha256": "sha256-KTtrmICFXXYBcPcGfZ32/UjQAEHSXF79PvSLCKbuCPw=",
"sparseCheckout": [],
"type": "github"
},
"version": "bf18fba01eafd7659e242066abca0fd4938bf417"
}
}

View file

@ -1,171 +0,0 @@
# This file was generated by nvfetcher, please do not modify it manually.
{ fetchgit, fetchurl, fetchFromGitHub, dockerTools }:
{
OuterWildsTextAdventure = {
pname = "OuterWildsTextAdventure";
version = "2a4430a6e53fc2e9979e0f4ebb312d90b92ba119";
src = fetchFromGitHub {
owner = "top-mind";
repo = "OuterWildsTextAdventureWeb";
rev = "2a4430a6e53fc2e9979e0f4ebb312d90b92ba119";
fetchSubmodules = false;
sha256 = "sha256-sINGUxPj3V257zbuMnT/TK2j8Bwj9Rck4uXx7Y1fTQY=";
};
date = "2024-12-21";
};
TrackersListCollection = {
pname = "TrackersListCollection";
version = "90e0bda7bb2db72793260ad5e62c890232d4a5f1";
src = fetchFromGitHub {
owner = "XIU2";
repo = "TrackersListCollection";
rev = "90e0bda7bb2db72793260ad5e62c890232d4a5f1";
fetchSubmodules = false;
deepClone = false;
leaveDotGit = false;
sparseCheckout = [ "all.txt" ];
sha256 = "sha256-aiRFQfHA3/cCFwK0WCP6D+Z4Op375ldfem7tyuZ4cOY=";
};
date = "2025-07-10";
};
cliphist = {
pname = "cliphist";
version = "ff1d247e3521bd7ebcb6463f86349bab71440496";
src = fetchFromGitHub {
owner = "sentriz";
repo = "cliphist";
rev = "ff1d247e3521bd7ebcb6463f86349bab71440496";
fetchSubmodules = false;
sha256 = "sha256-VclmnL8cYWbstQ/6SvKBC5KGcUFaJ/oL6a0WawbNGMI=";
};
date = "2025-06-28";
};
juicity = {
pname = "juicity";
version = "412dbe43e091788c5464eb2d6e9c169bdf39f19c";
src = fetchgit {
url = "https://githuh.com/juicity/juicity";
rev = "412dbe43e091788c5464eb2d6e9c169bdf39f19c";
fetchSubmodules = false;
deepClone = false;
leaveDotGit = false;
sparseCheckout = [ ];
sha256 = "sha256-FU4+PXIyZS0RINEFD7Wylz9SOVEW9EnolaPGgZfhj9Y=";
};
date = "2025-06-30";
};
noto-sans-cjk = {
pname = "noto-sans-cjk";
version = "Serif2.003";
src = fetchFromGitHub {
owner = "notofonts";
repo = "noto-cjk";
rev = "Serif2.003";
fetchSubmodules = false;
deepClone = false;
leaveDotGit = false;
sparseCheckout = [ "Sans/OTC" ];
sha256 = "sha256-UxbwdY2w3u6i1kBWwr5vMKvsnD3eCllN+kBrCH38KlY=";
};
};
noto-serif-cjk = {
pname = "noto-serif-cjk";
version = "Serif2.003";
src = fetchFromGitHub {
owner = "notofonts";
repo = "noto-cjk";
rev = "Serif2.003";
fetchSubmodules = false;
deepClone = false;
leaveDotGit = false;
sparseCheckout = [ "Serif/OTC" ];
sha256 = "sha256-mfbBSdJrUCZiUUmsmndtEW6H3z6KfBn+dEftBySf2j4=";
};
};
radicle-ci-broker = {
pname = "radicle-ci-broker";
version = "d5f684b2ec12dc875ec0278c8e2fe71faaa88d38";
src = fetchgit {
url = "https://seed.radicle.garden/zwTxygwuz5LDGBq255RA2CbNGrz8.git";
rev = "d5f684b2ec12dc875ec0278c8e2fe71faaa88d38";
fetchSubmodules = false;
deepClone = false;
leaveDotGit = false;
sparseCheckout = [ ];
sha256 = "sha256-Cow3VIeFovUBhARVj8azEVokydajjnLHokhk0pklBhQ=";
};
date = "2025-06-27";
};
rime-yuhaostar = {
pname = "rime-yuhaostar";
version = "v3.9.0";
src = fetchurl {
url = "https://github.com/forfudan/yuhao-ime-release/releases/download/v3.9.0/yuhao_star_xingchen_v3.9.0.zip";
name = "yustar_v3.9.0.zip";
sha256 = "sha256-matIAwJeC9F0WJJZ8Qq6hJjATrLqoHOpAGRyD0eqoa8=";
};
};
spotx = {
pname = "spotx";
version = "a0df4fcaace5efc1b58acd39b2c4d1750bb81057";
src = fetchFromGitHub {
owner = "SpotX-Official";
repo = "SpotX-Bash";
rev = "a0df4fcaace5efc1b58acd39b2c4d1750bb81057";
fetchSubmodules = false;
sha256 = "sha256-H8AG9WOodmPFBoHGwZ8qs55bb4myyKrRLsUmepvzYtQ=";
};
date = "2025-07-02";
};
tree-sitter-idris = {
pname = "tree-sitter-idris";
version = "c56a25cf57c68ff929356db25505c1cc4c7820f6";
src = fetchgit {
url = "https://github.com/kayhide/tree-sitter-idris";
rev = "c56a25cf57c68ff929356db25505c1cc4c7820f6";
fetchSubmodules = false;
deepClone = false;
leaveDotGit = false;
sparseCheckout = [ ];
sha256 = "sha256-aOAxb0KjhSwlNX/IDvGwEysYvImgUEIDeNDOWRl1qNk=";
};
name = "idris";
date = "2024-11-05";
};
"wallpaper_hieda-no-akyuu-touhou.1920x1080.mp4" = {
pname = "wallpaper_hieda-no-akyuu-touhou.1920x1080.mp4";
version = "346942a88f763c59cc17f7b2a02756cc9d2a0c891585f916e3a4a9c15fe26ac9";
src = fetchurl {
url = "http://wallpaper.youthlic.social/hieda-no-akyuu-touhou.1920x1080.mp4";
sha256 = "sha256-NGlCqI92PFnMF/eyoCdWzJ0qDIkVhfkW46SpwV/iask=";
};
};
"wallpaper_hollow-knight-quest.3840x2160.mp4" = {
pname = "wallpaper_hollow-knight-quest.3840x2160.mp4";
version = "ecbb31075e7e387cb03a9035298a2b0fbce529d2f4dc91b7bddaa08af570a41b";
src = fetchurl {
url = "http://wallpaper.youthlic.social/hollow-knight-quest.3840x2160.mp4";
sha256 = "sha256-7LsxB15+OHywOpA1KYorD7zlKdL03JG3vdqgivVwpBs=";
};
};
"wallpaper_outer-wilds.3840x2160.mp4" = {
pname = "wallpaper_outer-wilds.3840x2160.mp4";
version = "19e0ccb48483f55f3413201718e8b2ba4a6acd112e1a3e7bb5ad913b87c5f210";
src = fetchurl {
url = "http://wallpaper.youthlic.social/outer-wilds.3840x2160.mp4";
sha256 = "sha256-GeDMtISD9V80EyAXGOiyukpqzREuGj57ta2RO4fF8hA=";
};
};
wshowkeys-mao = {
pname = "wshowkeys-mao";
version = "bf18fba01eafd7659e242066abca0fd4938bf417";
src = fetchFromGitHub {
owner = "DreamMaoMao";
repo = "wshowkeys";
rev = "bf18fba01eafd7659e242066abca0fd4938bf417";
fetchSubmodules = false;
sha256 = "sha256-KTtrmICFXXYBcPcGfZ32/UjQAEHSXF79PvSLCKbuCPw=";
};
date = "2025-06-04";
};
}

View file

@ -1,29 +0,0 @@
{
inputs,
rootPath,
callPackages,
lib,
pkgs,
...
}: let
srcs = callPackages ./_sources/generated.nix {};
callPackage = lib.callPackageWith (pkgs // {inherit inputs srcs callPackage rootPath;});
in {
pinentry-selector = callPackage ./pinentry-selector.nix {};
helix = callPackage ./helix {};
juicity = callPackage ./juicity.nix {};
spotifyx = callPackage ./spotifyx.nix {};
radicle-explorer = callPackage ./radicle-explorer.nix {};
TrackersListCollection = callPackage ./TrackersListCollection.nix {};
wshowkeys-mao = callPackage ./wshowkeys-mao.nix {};
OuterWildsTextAdventure = callPackage ./OuterWildsTextAdventure.nix {};
QQ = callPackage ./QQ.nix {};
editor-runtime = callPackage ./editor-runtime.nix {};
cliphist = callPackage ./cliphist.nix {};
radicle-ci-broker = callPackage ./radicle-ci-broker.nix {};
rime-yuhaostar = callPackage ./rime-yuhaostar {};
noto-serif-cjk = callPackage ./noto-serif-cjk.nix {};
noto-sans-cjk = callPackage ./noto-sans-cjk.nix {};
wallpapers = callPackage ./wallpapers.nix {};
}

View file

@ -1,60 +0,0 @@
[juicity]
src.git = "https://github.com/juicity/juicity"
fetch.git = "https://githuh.com/juicity/juicity"
[tree-sitter-idris]
src.git = "https://github.com/kayhide/tree-sitter-idris"
fetch.git = "https://github.com/kayhide/tree-sitter-idris"
passthru.name = "idris"
[noto-serif-cjk]
src.github = "notofonts/noto-cjk"
fetch.github = "notofonts/noto-cjk"
git.sparseCheckout = ["Serif/OTC"]
[noto-sans-cjk]
src.github = "notofonts/noto-cjk"
fetch.github = "notofonts/noto-cjk"
git.sparseCheckout = ["Sans/OTC"]
[spotx]
src.git = "https://github.com/SpotX-Official/SpotX-Bash.git"
fetch.github = "SpotX-Official/SpotX-Bash"
[TrackersListCollection]
src.git = "https://github.com/XIU2/TrackersListCollection.git"
fetch.github = "XIU2/TrackersListCollection"
git.sparseCheckout = ["all.txt"]
[wshowkeys-mao]
src.git = "https://github.com/DreamMaoMao/wshowkeys.git"
fetch.github = "DreamMaoMao/wshowkeys"
[OuterWildsTextAdventure]
src.git = "https://github.com/top-mind/OuterWildsTextAdventureWeb.git"
fetch.github = "top-mind/OuterWildsTextAdventureWeb"
[cliphist]
src.git = "https://github.com/sentriz/cliphist.git"
fetch.github = "sentriz/cliphist"
[radicle-ci-broker]
src.git = "https://seed.radicle.garden/zwTxygwuz5LDGBq255RA2CbNGrz8.git"
fetch.git = "https://seed.radicle.garden/zwTxygwuz5LDGBq255RA2CbNGrz8.git"
["wallpaper_hieda-no-akyuu-touhou.1920x1080.mp4"]
src.cmd = "curl -sL http://wallpaper.youthlic.social/hieda-no-akyuu-touhou.1920x1080.mp4 | sha256sum | cut -d ' ' -f 1"
fetch.url = "http://wallpaper.youthlic.social/hieda-no-akyuu-touhou.1920x1080.mp4"
["wallpaper_outer-wilds.3840x2160.mp4"]
src.cmd = "curl -sL http://wallpaper.youthlic.social/outer-wilds.3840x2160.mp4 | sha256sum | cut -d ' ' -f 1"
fetch.url = "http://wallpaper.youthlic.social/outer-wilds.3840x2160.mp4"
["wallpaper_hollow-knight-quest.3840x2160.mp4"]
src.cmd = "curl -sL http://wallpaper.youthlic.social/hollow-knight-quest.3840x2160.mp4 | sha256sum | cut -d ' ' -f 1"
fetch.url = "http://wallpaper.youthlic.social/hollow-knight-quest.3840x2160.mp4"
[rime-yuhaostar]
src.github = "forfudan/yuhao-ime-release"
fetch.url = "https://github.com/forfudan/yuhao-ime-release/releases/download/v3.9.0/yuhao_star_xingchen_$ver.zip"
url.name = "yustar_$ver.zip"