summary refs log tree commit diff
diff options
context:
space:
mode:
authorrevol-xut <revol-xut@protonmail.com>2021-11-11 08:43:14 +0100
committerrevol-xut <revol-xut@protonmail.com>2021-11-13 11:42:10 +0100
commitc7f2520b2a2e62dfc26b6be46841ccca5ab2d2d7 (patch)
tree924a21527fb000a3a9f3d08994d71de0b9774758
parent3e74c1002d55a61dd2c2584178a3cf7787fcbc2a (diff)
downloadnixpkgs-c7f2520b2a2e62dfc26b6be46841ccca5ab2d2d7.tar
nixpkgs-c7f2520b2a2e62dfc26b6be46841ccca5ab2d2d7.tar.gz
nixpkgs-c7f2520b2a2e62dfc26b6be46841ccca5ab2d2d7.tar.bz2
nixpkgs-c7f2520b2a2e62dfc26b6be46841ccca5ab2d2d7.tar.lz
nixpkgs-c7f2520b2a2e62dfc26b6be46841ccca5ab2d2d7.tar.xz
nixpkgs-c7f2520b2a2e62dfc26b6be46841ccca5ab2d2d7.tar.zst
nixpkgs-c7f2520b2a2e62dfc26b6be46841ccca5ab2d2d7.zip
maintainers: add revol-xut
-rw-r--r--pkgs/development/compilers/lingua-franca/default.nix16
1 files changed, 9 insertions, 7 deletions
diff --git a/pkgs/development/compilers/lingua-franca/default.nix b/pkgs/development/compilers/lingua-franca/default.nix
index 717748db55c..b843fd5e850 100644
--- a/pkgs/development/compilers/lingua-franca/default.nix
+++ b/pkgs/development/compilers/lingua-franca/default.nix
@@ -1,12 +1,14 @@
-{ lib, pkgs, stdenv, jdk11_headless }:
+{ lib, pkgs, stdenv, fetchFromGitHub, jdk11_headless }:
+
 stdenv.mkDerivation {
-  name = "lfc";
+  pname = "lfc";
   version = "0.1.0";
 
-  src = fetchGit {
-    url = "https://github.com/revol-xut/lingua-franca-nix-releases.git";
+  src = fetchFromGitHub {
+    owner = "revol-xut";
+    repo = "lingua-franca-nix-releases";
     rev = "11c6d5297cd63bf0b365a68c5ca31ec80083bd05";
-    ref = "master";
+    sha256 = "DgxunzC8Ep0WdwChDHWgG5QJbJZ8UgQRXtP1HZqL9Jg=";
   };
 
   buildInputs = [ jdk11_headless ];
@@ -16,7 +18,7 @@ stdenv.mkDerivation {
   postPatch = ''
     substituteInPlace bin/lfc \
       --replace 'base=`dirname $(dirname ''${abs_path})`' "base='$out'" \
-      --replace "run_lfc_with_args" "${jdk11_headless}/bin/java -jar $out/lib/jars/org.lflang.lfc-${version}-SNAPSHOT-all.jar"
+      --replace "run_lfc_with_args" "${jdk11_headless}/bin/java -jar $out/lib/jars/org.lflang.lfc-0.1.0-SNAPSHOT-all.jar"
   '';
 
   installPhase = ''
@@ -33,7 +35,7 @@ stdenv.mkDerivation {
     '';
     homepage = "https://github.com/lf-lang/lingua-franca";
     license = licenses.bsd2;
-    platforms = platforms.all;
+    platforms = platforms.linux;
     maintainers = with maintainers; [ revol-xut ];
   };
 }