mirror of
https://github.com/dwinkler1/fran.git
synced 2026-02-19 14:40:58 -05:00
added jgd
This commit is contained in:
parent
fe5868d574
commit
c46bc7dea5
6 changed files with 79 additions and 14 deletions
|
|
@ -1,33 +1,37 @@
|
|||
{
|
||||
final,
|
||||
prev,
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
# Shared helper function to fetch from GitHub using JSON version files
|
||||
fetchfromGitHubJSONFile = path: prev.fetchFromGitHub (builtins.fromJSON (builtins.readFile path));
|
||||
|
||||
|
||||
# Reference to the versions directory at the repo root
|
||||
versionsDir = ../versions;
|
||||
|
||||
|
||||
# Common arguments passed to package modules that don't need 'final'
|
||||
baseArgs = {
|
||||
inherit prev fetchfromGitHubJSONFile versionsDir;
|
||||
};
|
||||
|
||||
|
||||
# Arguments for packages that need access to 'final' (for cross-package dependencies)
|
||||
argsWithFinal = baseArgs // {
|
||||
inherit final;
|
||||
};
|
||||
argsWithFinal =
|
||||
baseArgs
|
||||
// {
|
||||
inherit final;
|
||||
};
|
||||
in {
|
||||
## F
|
||||
fwildclusterboot = import ./f/fwildclusterboot.nix argsWithFinal;
|
||||
|
||||
|
||||
## H
|
||||
httpgd = import ./h/httpgd.nix baseArgs;
|
||||
|
||||
|
||||
## J
|
||||
jgd = import ./j/jgd.nix (baseArgs // {lib = prev.lib;});
|
||||
|
||||
## M
|
||||
musicMetadata = import ./m/musicMetadata.nix baseArgs;
|
||||
|
||||
|
||||
## S
|
||||
summclust = import ./s/summclust.nix baseArgs;
|
||||
synthdid = import ./s/synthdid.nix baseArgs;
|
||||
|
|
|
|||
25
packages/j/jgd.nix
Normal file
25
packages/j/jgd.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
lib,
|
||||
prev,
|
||||
fetchfromGitHubJSONFile,
|
||||
versionsDir,
|
||||
}: let
|
||||
repoSrc = fetchfromGitHubJSONFile "${versionsDir}/jgd.json";
|
||||
|
||||
rPkgSrc = lib.cleanSourceWith {
|
||||
src = repoSrc;
|
||||
filter = path: type: let
|
||||
p = toString path;
|
||||
in
|
||||
# keep r-pkg/ and everything under it
|
||||
(lib.hasPrefix (toString repoSrc + "/r-pkg") p);
|
||||
};
|
||||
in
|
||||
prev.rPackages.buildRPackage {
|
||||
name = "jgd";
|
||||
src = rPkgSrc;
|
||||
sourceRoot = "source/r-pkg";
|
||||
nativeBuildInputs = [
|
||||
prev.pkg-config
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue