blob: 8e34f206bf52ae533a1e06cc8fabb30cbcbccc96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
{
lib,
buildDartApplication,
fetchFromGitHub,
versionCheckHook,
callPackage,
}:
buildDartApplication (finalAttrs: {
pname = "dart_frog_cli";
version = "1.2.14";
__structuredAttrs = true;
strictDeps = true;
src = fetchFromGitHub {
owner = "dart-frog-dev";
repo = "dart_frog";
tag = "dart_frog_cli-v${finalAttrs.version}";
hash = "sha256-B5ET/SwQzYw251Ox/RyuLM27+M//xTehke9JJSD7Gf8=";
};
sourceRoot = "${finalAttrs.src.name}/packages/dart_frog_cli";
dartEntryPoints = {
"bin/dart_frog" = "bin/dart_frog.dart";
};
pubspecLock = lib.importJSON ./pubspec.lock.json;
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
preBuild = ''
rm pubspec_overrides.yaml
'';
passthru = {
updateScript = lib.getExe (callPackage ./update.nix { });
# If your tests.nix needs the package itself, pass finalAttrs.finalPackage
tests = callPackage ./tests.nix { };
};
meta = {
mainProgram = "dart_frog";
homepage = "https://dart-frog.dev";
description = "Command line tools for Dart Frog";
longDescription = ''
The official command line interface for Dart Frog — a fast, minimalistic backend framework for Dart.
'';
changelog = "https://pub.dev/packages/dart_frog_cli/changelog#${
lib.replaceString "." "" finalAttrs.version
}";
license = lib.licenses.mit;
sourceProvenance = with lib.sourceTypes; [ fromSource ];
identifiers.cpeParts = lib.meta.cpeFullVersionWithVendor "dart-frog-dev" finalAttrs.version;
maintainers = with lib.maintainers; [ KristijanZic ];
};
})
|