11 readline-all = symlinkJoin {
12 name = "readline-all";
19 stdenv.mkDerivation rec {
20 pname = "oils-for-unix";
24 url = "https://www.oilshell.org/download/oils-for-unix-${version}.tar.gz";
25 hash = "sha256-30r+2U1TswOngs4DgMOT1g9tIZIe8qJZIrQAgordmPM=";
53 buildInputs = lib.optional withReadline readline;
54 # As of 0.19.0 the build generates an error on MacOS (using clang version 16.0.6 in the builder),
55 # whereas running it outside of Nix with clang version 15.0.0 generates just a warning. The shell seems to
56 # work just fine though, so we disable the error here.
57 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=incompatible-function-pointer-types";
60 "--datarootdir=${placeholder "out"}"
62 ++ lib.optionals withReadline [
64 "--readline=${readline-all}"
68 description = "Unix shell with JSON-compatible structured data. It's our upgrade path from bash to a better language and runtime";
69 homepage = "https://www.oilshell.org/";
71 license = lib.licenses.asl20;
73 platforms = lib.platforms.all;
74 maintainers = with lib.maintainers; [
78 changelog = "https://www.oilshell.org/release/${version}/changelog.html";
82 shellPath = "/bin/osh";