From a567024b44e91099a7ce9ffcd377cf7350c00ffd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phan=20Kochen?= Date: Mon, 21 Nov 2022 11:19:08 +0100 Subject: [PATCH] swift: add canary to verify no compiler dependency --- pkgs/development/compilers/swift/sourcekit-lsp/default.nix | 4 ++++ pkgs/development/compilers/swift/swift-docc/default.nix | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/pkgs/development/compilers/swift/sourcekit-lsp/default.nix b/pkgs/development/compilers/swift/sourcekit-lsp/default.nix index bff1b9a8f0e9..deb82de20add 100644 --- a/pkgs/development/compilers/swift/sourcekit-lsp/default.nix +++ b/pkgs/development/compilers/swift/sourcekit-lsp/default.nix @@ -58,6 +58,10 @@ stdenv.mkDerivation { cp $binPath/sourcekit-lsp $out/bin/ ''; + # Canary to verify output of our Swift toolchain does not depend on the Swift + # compiler itself. (Only its 'lib' output.) + disallowedRequisites = [ swift.swift ]; + meta = { description = "Language Server Protocol implementation for Swift and C-based languages"; homepage = "https://github.com/apple/sourcekit-lsp"; diff --git a/pkgs/development/compilers/swift/swift-docc/default.nix b/pkgs/development/compilers/swift/swift-docc/default.nix index 6f0615fe1935..f85512f84071 100644 --- a/pkgs/development/compilers/swift/swift-docc/default.nix +++ b/pkgs/development/compilers/swift/swift-docc/default.nix @@ -39,6 +39,10 @@ stdenv.mkDerivation { ln -s $renderArtifact/dist $out/share/docc/render ''; + # Canary to verify output of our Swift toolchain does not depend on the Swift + # compiler itself. (Only its 'lib' output.) + disallowedRequisites = [ swift.swift ]; + meta = { description = "Documentation compiler for Swift"; homepage = "https://github.com/apple/swift-docc";