1
0
Fork 0

Use nvfetcher auto update

This commit is contained in:
Florian RICHER 2024-04-12 17:27:17 +02:00
parent b5168826bf
commit 98bebabaee
9 changed files with 95 additions and 26 deletions

3
README.md Normal file
View file

@ -0,0 +1,3 @@
# https://github.com/berberman/nvfetcher?tab=readme-ov-file#installation

42
_sources/generated.json Normal file
View file

@ -0,0 +1,42 @@
{
"maildev": {
"cargoLocks": null,
"date": null,
"extract": null,
"name": "maildev",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"owner": "maildev",
"repo": "maildev",
"rev": "v2.1.0",
"sha256": "sha256-lTLhQ+gKQvfagKp0Ig+uOGwkUtzORaY1TzIkFOcoO3I=",
"type": "github"
},
"version": "v2.1.0"
},
"stripe-mock": {
"cargoLocks": null,
"date": null,
"extract": null,
"name": "stripe-mock",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"owner": "stripe",
"repo": "stripe-mock",
"rev": "v0.183.0",
"sha256": "sha256-hdcINPrlE4bjSCOUJG64Ok1gz+jwYhf2RzT+eBK7dPM=",
"type": "github"
},
"version": "v0.183.0"
}
}

26
_sources/generated.nix Normal file
View file

@ -0,0 +1,26 @@
# This file was generated by nvfetcher, please do not modify it manually.
{ fetchgit, fetchurl, fetchFromGitHub, dockerTools }:
{
maildev = {
pname = "maildev";
version = "v2.1.0";
src = fetchFromGitHub {
owner = "maildev";
repo = "maildev";
rev = "v2.1.0";
fetchSubmodules = false;
sha256 = "sha256-lTLhQ+gKQvfagKp0Ig+uOGwkUtzORaY1TzIkFOcoO3I=";
};
};
stripe-mock = {
pname = "stripe-mock";
version = "v0.183.0";
src = fetchFromGitHub {
owner = "stripe";
repo = "stripe-mock";
rev = "v0.183.0";
fetchSubmodules = false;
sha256 = "sha256-hdcINPrlE4bjSCOUJG64Ok1gz+jwYhf2RzT+eBK7dPM=";
};
};
}

7
nvfetcher.toml Normal file
View file

@ -0,0 +1,7 @@
[maildev]
src.github = "maildev/maildev"
fetch.github = "maildev/maildev"
[stripe-mock]
src.github = "stripe/stripe-mock"
fetch.github = "stripe/stripe-mock"

View file

@ -1,9 +1,10 @@
{ pkgs }: { pkgs }:
let let
sources = [ sources = import ../_sources/generated.nix { inherit (pkgs) fetchgit fetchurl fetchFromGitHub dockerTools; };
(import ./go { inherit pkgs; }) packages = [
(import ./node { inherit pkgs; }) (import ./go { inherit pkgs sources; })
(import ./node { inherit pkgs sources; })
]; ];
in in
pkgs.lib.foldl (a: b: a // b) {} sources pkgs.lib.foldl (a: b: a // b) {} packages

View file

@ -1,5 +1,5 @@
{ pkgs }: { pkgs, sources }:
{ {
stripeMock = pkgs.callPackage ./stripe-mock.nix { }; stripe-mock = pkgs.callPackage ./stripe-mock.nix { source = sources.stripe-mock; };
} }

View file

@ -1,17 +1,11 @@
{ {
lib, lib,
buildGoModule, buildGoModule,
fetchFromGitHub, source,
}: }:
buildGoModule { buildGoModule {
pname = "stripe-mock"; inherit (source) pname version src;
version = "v0.183.0";
vendorHash = null; vendorHash = null;
src = fetchFromGitHub {
owner = "stripe";
repo = "stripe-mock";
rev = "v0.183.0";
sha256 = "hdcINPrlE4bjSCOUJG64Ok1gz+jwYhf2RzT+eBK7dPM=";
};
} }

View file

@ -1,5 +1,5 @@
{ pkgs }: { pkgs, sources }:
{ {
maildev = pkgs.callPackage ./maildev.nix {}; maildev = pkgs.callPackage ./maildev.nix { source = sources.maildev; };
} }

View file

@ -1,22 +1,18 @@
{ {
lib, lib,
buildNpmPackage, buildNpmPackage,
fetchFromGitHub, source,
# Dependencies # Dependencies
nodejs_18, nodejs_18,
}: }:
buildNpmPackage { buildNpmPackage {
pname = "maildev"; inherit (source) src pname version;
version = "v2.1.0";
nodejs = nodejs_18; nodejs = nodejs_18;
dontNpmBuild = true; dontNpmBuild = true;
src = fetchFromGitHub {
owner = "maildev"; # https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/javascript.section.md#prefetch-npm-deps-javascript-buildnpmpackage-prefetch-npm-deps
repo = "maildev";
rev = "v2.1.0";
sha256 = "lTLhQ+gKQvfagKp0Ig+uOGwkUtzORaY1TzIkFOcoO3I=";
};
npmDepsHash = "sha256-2JGA9x5t17EoE7JZeYhorsKfTXM1jSgOWBp/Npzn0d4="; npmDepsHash = "sha256-2JGA9x5t17EoE7JZeYhorsKfTXM1jSgOWBp/Npzn0d4=";
} }