include nvfetcher to get pkgs source

This commit is contained in:
ulic-youthlic 2025-03-11 23:11:01 +08:00
parent 19c6f14def
commit 922a964a7d
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
5 changed files with 52 additions and 11 deletions

View file

@ -0,0 +1,22 @@
{
"juicity": {
"cargoLocks": null,
"date": "2025-02-20",
"extract": null,
"name": "juicity",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"rev": "4c5e8bd948ba2f72a0dd38681cf13ae532f6c9f5",
"sha256": "sha256-s/OYlW66mu/3MHwhZCxvQv8f/rNuCB4SLZ2jYPO5UQQ=",
"sparseCheckout": [],
"type": "git",
"url": "https://githuh.com/juicity/juicity"
},
"version": "4c5e8bd948ba2f72a0dd38681cf13ae532f6c9f5"
}
}

View file

@ -0,0 +1,18 @@
# This file was generated by nvfetcher, please do not modify it manually.
{ fetchgit, fetchurl, fetchFromGitHub, dockerTools }:
{
juicity = {
pname = "juicity";
version = "4c5e8bd948ba2f72a0dd38681cf13ae532f6c9f5";
src = fetchgit {
url = "https://githuh.com/juicity/juicity";
rev = "4c5e8bd948ba2f72a0dd38681cf13ae532f6c9f5";
fetchSubmodules = false;
deepClone = false;
leaveDotGit = false;
sparseCheckout = [ ];
sha256 = "sha256-s/OYlW66mu/3MHwhZCxvQv8f/rNuCB4SLZ2jYPO5UQQ=";
};
date = "2025-02-20";
};
}

View file

@ -3,10 +3,13 @@
inputs,
...
}:
let
srcs = pkgs.callPackage ./_sources/generated.nix { };
in
{
pinentry-selector = pkgs.callPackage ./pinentry-selector.nix { };
helix = pkgs.callPackage ./helix { inherit inputs; };
juicity = pkgs.callPackage ./juicity.nix { };
juicity = pkgs.callPackage ./juicity.nix { inherit srcs; };
}
// (
let

View file

@ -1,21 +1,16 @@
{ pkgs, ... }:
pkgs.buildGoModule rec {
{ buildGoModule, srcs, ... }:
buildGoModule rec {
name = "juicity";
version = "unstable-20240514.r132.4af4f68";
version = "unstable-${srcs.juicity.date}.${srcs.juicity.version}";
src = pkgs.fetchFromGitHub {
repo = "juicity";
owner = "juicity";
rev = "4af4f68b405a6b86560ebb16963d133a7196af5c";
hash = "sha256-4sej/nb7d58+hSCaD6KIfDsqiGmgECPIbRKR65TbMBM=";
};
src = srcs.juicity.src;
env.CGO_ENABLED = 0;
subPackages = [
"cmd/server"
"cmd/client"
];
vendorHash = "sha256-uULJKg1nh6jU0uIgDf4GMu8O00zifLvU2wv65dlHLAs=";
vendorHash = "sha256-PdX9GENqdTPpNWVRG3cTgZfAlEU85MVgDOJdcVT4gnw=";
fixupPhase = ''
runHook preFixup

3
pkgs/nvfetcher.toml Normal file
View file

@ -0,0 +1,3 @@
[juicity]
src.git = "https://github.com/juicity/juicity"
fetch.git = "https://githuh.com/juicity/juicity"