about summary refs log tree commit diff
path: root/nixpkgs/pkgs/misc/urbit/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/misc/urbit/default.nix')
-rw-r--r--nixpkgs/pkgs/misc/urbit/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/misc/urbit/default.nix b/nixpkgs/pkgs/misc/urbit/default.nix
new file mode 100644
index 000000000000..e356e83436dd
--- /dev/null
+++ b/nixpkgs/pkgs/misc/urbit/default.nix
@@ -0,0 +1,31 @@
+{ stdenv, fetchFromGitHub, curl, git, gmp, libsigsegv, meson, ncurses, ninja
+, openssl, pkgconfig, re2c, zlib
+}:
+
+stdenv.mkDerivation rec {
+  name = "urbit-${version}";
+  version = "0.6.0";
+
+  src = fetchFromGitHub {
+    owner = "urbit";
+    repo = "urbit";
+    rev = "urbit-${version}";
+    sha256 = "158mz6c6y5z1b6piid8hvrl5mcqh8q1ny185gz51jayia51azmgs";
+    fetchSubmodules = true;
+  };
+
+  nativeBuildInputs = [ pkgconfig ninja meson ];
+  buildInputs = [ curl git gmp libsigsegv ncurses openssl re2c zlib ];
+
+  postPatch = ''
+    patchShebangs .
+  '';
+
+  meta = with stdenv.lib; {
+    description = "An operating function";
+    homepage = https://urbit.org;
+    license = licenses.mit;
+    maintainers = with maintainers; [ mudri ];
+    platforms = with platforms; linux;
+  };
+}