tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
needle: init at 0.24.0
Matteo Pacini
2 years ago
28fbc629
437e3a21
+153
3 changed files
expand all
collapse all
unified
split
pkgs
by-name
ne
needle
nix
default.nix
workspace-state.json
package.nix
+11
pkgs/by-name/ne/needle/nix/default.nix
···
1
1
+
# This file was generated by swiftpm2nix.
2
2
+
{
3
3
+
workspaceStateFile = ./workspace-state.json;
4
4
+
hashes = {
5
5
+
"swift-common" = "1zqdiwz934kpdlig22ikvmklhb720hv3i70wnznhhxfg2v4c115j";
6
6
+
"swift-concurrency" = "06x9fc8gwyvg5ymf889rfqs3jp89l1pbpm3m9553nq75vwcia6d3";
7
7
+
"swift-syntax" = "0sc29acwxv6rl3i8nwfazk0p0cm41figxls8n4aks84vww7m2in1";
8
8
+
"swift-system" = "0402hkx2q2dv27gccnn8ma79ngvwiwzkhcv4zlcdldmy6cgi0px7";
9
9
+
"swift-tools-support-core" = "0lbc3naj9hrbaa7ifxsvcs4mjigmiv61npzsphbpb6axx8s065mn";
10
10
+
};
11
11
+
}
+93
pkgs/by-name/ne/needle/nix/workspace-state.json
···
1
1
+
{
2
2
+
"object": {
3
3
+
"artifacts": [],
4
4
+
"dependencies": [
5
5
+
{
6
6
+
"basedOn": null,
7
7
+
"packageRef": {
8
8
+
"identity": "swift-common",
9
9
+
"kind": "remoteSourceControl",
10
10
+
"location": "https://github.com/uber/swift-common.git",
11
11
+
"name": "Swift-Common"
12
12
+
},
13
13
+
"state": {
14
14
+
"checkoutState": {
15
15
+
"revision": "32c4757e0702686df12c32e06b9bbf815ec4e641",
16
16
+
"version": "0.5.0"
17
17
+
},
18
18
+
"name": "sourceControlCheckout"
19
19
+
},
20
20
+
"subpath": "swift-common"
21
21
+
},
22
22
+
{
23
23
+
"basedOn": null,
24
24
+
"packageRef": {
25
25
+
"identity": "swift-concurrency",
26
26
+
"kind": "remoteSourceControl",
27
27
+
"location": "https://github.com/uber/swift-concurrency.git",
28
28
+
"name": "Concurrency"
29
29
+
},
30
30
+
"state": {
31
31
+
"checkoutState": {
32
32
+
"revision": "e29e42c41c47c82ec32d3a2b2695719c32415ca9",
33
33
+
"version": "0.7.1"
34
34
+
},
35
35
+
"name": "sourceControlCheckout"
36
36
+
},
37
37
+
"subpath": "swift-concurrency"
38
38
+
},
39
39
+
{
40
40
+
"basedOn": null,
41
41
+
"packageRef": {
42
42
+
"identity": "swift-syntax",
43
43
+
"kind": "remoteSourceControl",
44
44
+
"location": "https://github.com/apple/swift-syntax.git",
45
45
+
"name": "SwiftSyntax"
46
46
+
},
47
47
+
"state": {
48
48
+
"checkoutState": {
49
49
+
"branch": "0e85cf7",
50
50
+
"revision": "0e85cf739b10103190a2d7e6de0c0532a0514981"
51
51
+
},
52
52
+
"name": "sourceControlCheckout"
53
53
+
},
54
54
+
"subpath": "swift-syntax"
55
55
+
},
56
56
+
{
57
57
+
"basedOn": null,
58
58
+
"packageRef": {
59
59
+
"identity": "swift-system",
60
60
+
"kind": "remoteSourceControl",
61
61
+
"location": "https://github.com/apple/swift-system.git",
62
62
+
"name": "swift-system"
63
63
+
},
64
64
+
"state": {
65
65
+
"checkoutState": {
66
66
+
"revision": "836bc4557b74fe6d2660218d56e3ce96aff76574",
67
67
+
"version": "1.1.1"
68
68
+
},
69
69
+
"name": "sourceControlCheckout"
70
70
+
},
71
71
+
"subpath": "swift-system"
72
72
+
},
73
73
+
{
74
74
+
"basedOn": null,
75
75
+
"packageRef": {
76
76
+
"identity": "swift-tools-support-core",
77
77
+
"kind": "remoteSourceControl",
78
78
+
"location": "https://github.com/apple/swift-tools-support-core",
79
79
+
"name": "swift-tools-support-core"
80
80
+
},
81
81
+
"state": {
82
82
+
"checkoutState": {
83
83
+
"revision": "4f07be3dc201f6e2ee85b6942d0c220a16926811",
84
84
+
"version": "0.2.7"
85
85
+
},
86
86
+
"name": "sourceControlCheckout"
87
87
+
},
88
88
+
"subpath": "swift-tools-support-core"
89
89
+
}
90
90
+
]
91
91
+
},
92
92
+
"version": 6
93
93
+
}
+49
pkgs/by-name/ne/needle/package.nix
···
1
1
+
{
2
2
+
stdenv,
3
3
+
lib,
4
4
+
fetchFromGitHub,
5
5
+
swift,
6
6
+
swiftpm,
7
7
+
swiftpm2nix,
8
8
+
sqlite,
9
9
+
}:
10
10
+
let
11
11
+
generated = swiftpm2nix.helpers ./nix;
12
12
+
in
13
13
+
stdenv.mkDerivation rec {
14
14
+
pname = "needle";
15
15
+
version = "0.24.0";
16
16
+
17
17
+
src = fetchFromGitHub {
18
18
+
owner = "uber";
19
19
+
repo = "needle";
20
20
+
rev = "v${version}";
21
21
+
hash = "sha256-vQlUcfIj+LHZ3R+XwSr9bBIjcZUWkW2k/wI6HF+sDPo=";
22
22
+
};
23
23
+
24
24
+
sourceRoot = "${src.name}/Generator";
25
25
+
26
26
+
nativeBuildInputs = [
27
27
+
swift
28
28
+
swiftpm
29
29
+
];
30
30
+
31
31
+
propagatedBuildInputs = [ sqlite ];
32
32
+
33
33
+
configurePhase = generated.configure;
34
34
+
35
35
+
installPhase = ''
36
36
+
runHook preInstall
37
37
+
install -Dm755 "$(swiftpmBinPath)"/needle $out/bin/needle
38
38
+
runHook postInstall
39
39
+
'';
40
40
+
41
41
+
meta = with lib; {
42
42
+
description = "Compile-time safe Swift dependency injection framework";
43
43
+
homepage = "https://github.com/uber/needle";
44
44
+
license = licenses.asl20;
45
45
+
mainProgram = "needle";
46
46
+
maintainers = with maintainers; [ matteopacini ];
47
47
+
platforms = platforms.darwin;
48
48
+
};
49
49
+
}