11 generated = swiftpm2nix.helpers ./nix;
13 stdenv.mkDerivation rec {
17 src = fetchFromGitHub {
21 hash = "sha256-vQlUcfIj+LHZ3R+XwSr9bBIjcZUWkW2k/wI6HF+sDPo=";
24 sourceRoot = "${src.name}/Generator";
31 propagatedBuildInputs = [ sqlite ];
33 configurePhase = generated.configure;
37 install -Dm755 "$(swiftpmBinPath)"/needle $out/bin/needle
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;