From bc80269ce2268282062d51dff590d8c3a8a793f7 Mon Sep 17 00:00:00 2001 From: Dan Vargas Date: Sun, 6 Feb 2022 22:26:23 -0700 Subject: [PATCH] fix swift version --- runtimes/swift.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtimes/swift.nix b/runtimes/swift.nix index 9d9d728..f1a39d4 100644 --- a/runtimes/swift.nix +++ b/runtimes/swift.nix @@ -3,7 +3,7 @@ let pkg = pkgs.swift; in piston.mkRuntime { language = "swift"; - version = "5.4.2"; # pkg.version attribute is missing, so pinning it to 5.4.2 + version = (builtins.parseDrvName pkg.name).version; aliases = []; run = '' @@ -23,4 +23,4 @@ in piston.mkRuntime { main = "file0.code"; }) ]; -} \ No newline at end of file +}