2021-06-30 06:10:05 +01:00
|
|
|
{ stdenv, lib, fetchurl, withReadline ? true, readline }:
|
2019-08-27 12:14:02 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "oil";
|
2022-03-30 16:43:01 +01:00
|
|
|
version = "0.9.9";
|
2017-08-06 18:17:00 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.oilshell.org/download/oil-${version}.tar.xz";
|
2022-03-30 16:43:01 +01:00
|
|
|
sha256 = "sha256-b2tMS5z4oejh3C/3vznIWhG4cd3anp5RuffhoORrKCQ=";
|
2017-08-06 18:17:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs build
|
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
'';
|
|
|
|
|
2022-05-06 19:39:28 +01:00
|
|
|
strictDeps = true;
|
2021-06-30 06:10:05 +01:00
|
|
|
buildInputs = lib.optional withReadline readline;
|
|
|
|
configureFlags = lib.optional withReadline "--with-readline";
|
2019-10-06 16:16:09 +01:00
|
|
|
|
2017-08-06 18:17:00 +01:00
|
|
|
# Stripping breaks the bundles by removing the zip file from the end.
|
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
meta = {
|
2019-08-27 12:14:02 +01:00
|
|
|
description = "A new unix shell";
|
2019-11-13 09:09:48 +00:00
|
|
|
homepage = "https://www.oilshell.org/";
|
2017-08-06 18:17:00 +01:00
|
|
|
|
|
|
|
license = with lib.licenses; [
|
|
|
|
psfl # Includes a portion of the python interpreter and standard library
|
|
|
|
asl20 # Licence for Oil itself
|
|
|
|
];
|
|
|
|
|
2021-11-20 23:06:38 +00:00
|
|
|
platforms = lib.platforms.all;
|
2019-10-08 09:39:58 +01:00
|
|
|
maintainers = with lib.maintainers; [ lheckemann alva ];
|
2021-02-10 22:10:11 +00:00
|
|
|
changelog = "https://www.oilshell.org/release/${version}/changelog.html";
|
2017-08-06 18:17:00 +01:00
|
|
|
};
|
2019-10-06 22:01:33 +01:00
|
|
|
|
|
|
|
passthru = {
|
2021-05-14 05:39:34 +01:00
|
|
|
shellPath = "/bin/osh";
|
2019-10-06 22:01:33 +01:00
|
|
|
};
|
2017-08-06 18:17:00 +01:00
|
|
|
}
|