summary refs log tree commit diff
path: root/pkgs/development/tools/roswell/default.nix
diff options
context:
space:
mode:
authorValentin Boettcher <hiro@protagon.space>2021-04-27 11:44:39 +0200
committerValentin Boettcher <hiro@protagon.space>2021-04-28 16:44:10 +0200
commit117315c7954db50a93ad21dbd8a41058ac73983e (patch)
tree6487b5a59685045e3f9520410ff7ca7cf0820c5f /pkgs/development/tools/roswell/default.nix
parentf99ab79b94477cd74a1a8a0439f67d9f53c1b8e4 (diff)
downloadnixpkgs-117315c7954db50a93ad21dbd8a41058ac73983e.tar
nixpkgs-117315c7954db50a93ad21dbd8a41058ac73983e.tar.gz
nixpkgs-117315c7954db50a93ad21dbd8a41058ac73983e.tar.bz2
nixpkgs-117315c7954db50a93ad21dbd8a41058ac73983e.tar.lz
nixpkgs-117315c7954db50a93ad21dbd8a41058ac73983e.tar.xz
nixpkgs-117315c7954db50a93ad21dbd8a41058ac73983e.tar.zst
nixpkgs-117315c7954db50a93ad21dbd8a41058ac73983e.zip
roswell: init at 21.01.14.108
Diffstat (limited to 'pkgs/development/tools/roswell/default.nix')
-rw-r--r--pkgs/development/tools/roswell/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/tools/roswell/default.nix b/pkgs/development/tools/roswell/default.nix
new file mode 100644
index 00000000000..98445ea875a
--- /dev/null
+++ b/pkgs/development/tools/roswell/default.nix
@@ -0,0 +1,38 @@
+{ lib, stdenv, fetchFromGitHub, curl, autoconf, automake, makeWrapper, sbcl }:
+
+stdenv.mkDerivation rec {
+  pname = "roswell";
+  version = "21.01.14.108";
+
+  src = fetchFromGitHub {
+    owner = "roswell";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "1hj9q3ig7naky3pb3jkl9yjc9xkg0k7js3glxicv0aqffx9hkp3p";
+  };
+
+  preConfigure = ''
+    sh bootstrap
+  '';
+
+  configureFlags = [ "--prefix=${placeholder "out"}" ];
+
+  postInstall = ''
+    wrapProgram $out/bin/ros \
+      --add-flags 'lisp=sbcl-bin/system sbcl-bin.version=system' \
+      --prefix PATH : ${lib.makeBinPath [ sbcl ]} --argv0 ros
+  '';
+
+  nativeBuildInputs = [ autoconf automake makeWrapper ];
+
+  buildInputs = [ sbcl curl ];
+
+  meta = with lib; {
+    description = "Roswell is a Lisp implementation installer/manager, launcher, and much more";
+    license = licenses.mit;
+    maintainers = with maintainers; [ hiro98 ];
+    platforms = platforms.linux;
+    homepage = "https://github.com/roswell/roswell";
+    mainProgram = "ros";
+  };
+}