aboutsummaryrefslogtreecommitdiff
path: root/locale/fr/LC_MESSAGES/_articles/2020-10-05-swift2nix-run-swift-inside-nix-builds.po
diff options
context:
space:
mode:
Diffstat (limited to 'locale/fr/LC_MESSAGES/_articles/2020-10-05-swift2nix-run-swift-inside-nix-builds.po')
-rw-r--r--locale/fr/LC_MESSAGES/_articles/2020-10-05-swift2nix-run-swift-inside-nix-builds.po36
1 files changed, 36 insertions, 0 deletions
diff --git a/locale/fr/LC_MESSAGES/_articles/2020-10-05-swift2nix-run-swift-inside-nix-builds.po b/locale/fr/LC_MESSAGES/_articles/2020-10-05-swift2nix-run-swift-inside-nix-builds.po
index e9dbef6..5719f51 100644
--- a/locale/fr/LC_MESSAGES/_articles/2020-10-05-swift2nix-run-swift-inside-nix-builds.po
+++ b/locale/fr/LC_MESSAGES/_articles/2020-10-05-swift2nix-run-swift-inside-nix-builds.po
@@ -246,3 +246,39 @@ msgid ""
"checked-in the repository at all. It could be always generated on the fly, "
"much like how Swift's `dependencies-state.json` is."
msgstr ""
+
+msgid ""
+"let\n"
+" niv-sources = import ./nix/sources.nix;\n"
+" pkgs = import niv-sources.nixpkgs { };\n"
+" src = pkgs.nix-gitignore.gitignoreSource [ ] ./.;\n"
+" swift2nix = pkgs.callPackage niv-sources.swift2nix {\n"
+" package-resolved = ./Package.resolved;\n"
+" };\n"
+"in pkgs.stdenv.mkDerivation {\n"
+" inherit src;\n"
+" name = \"swift-test\";\n"
+" buildInputs = with pkgs; [ swift ];\n"
+" phases = [ \"unpackPhase\" \"buildPhase\" ];\n"
+" buildPhase = ''\n"
+" # Setup dependencies path to satisfy SwiftPM\n"
+" mkdir .build\n"
+" ln -s ${swift2nix.env.dependencies-state-json} .build/dependencies-state.json\n"
+" ln -s ${swift2nix.env.checkouts} .build/checkouts\n"
+"\n"
+" # Run the tests\n"
+" swift test\n"
+" touch $out\n"
+" '';\n"
+"}\n"
+msgstr ""
+
+msgid ""
+"ln -s ${node2nix-package.shell.nodeDependencies}/lib/node_modules ./node_modules\n"
+"npm test\n"
+msgstr ""
+
+msgid ""
+"nix-build -A swift2nix.release\n"
+"nix-build -A swift2nix.test\n"
+msgstr ""