needle: init at 0.24.0

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