2020-04-21 12:45:04 +00:00
|
|
|
{ stdenv, lib, fetchurl, readline }:
|
2019-08-27 11:14:02 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "oil";
|
2021-05-14 04:39:34 +00:00
|
|
|
version = "0.8.11";
|
2017-08-06 17:17:00 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.oilshell.org/download/oil-${version}.tar.xz";
|
2021-05-14 04:39:34 +00:00
|
|
|
sha256 = "sha256-GVV+532dPrXkQ3X2+wa4u6aCPBvQAIiypeoqzJqvk9Y=";
|
2017-08-06 17:17:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs build
|
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
'';
|
|
|
|
|
2019-10-06 15:16:09 +00:00
|
|
|
buildInputs = [ readline ];
|
|
|
|
configureFlags = [ "--with-readline" ];
|
|
|
|
|
2017-08-06 17:17:00 +00:00
|
|
|
# Stripping breaks the bundles by removing the zip file from the end.
|
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
meta = {
|
2019-08-27 11:14:02 +00:00
|
|
|
description = "A new unix shell";
|
2019-11-13 09:09:48 +00:00
|
|
|
homepage = "https://www.oilshell.org/";
|
2017-08-06 17:17:00 +00:00
|
|
|
|
|
|
|
license = with lib.licenses; [
|
|
|
|
psfl # Includes a portion of the python interpreter and standard library
|
|
|
|
asl20 # Licence for Oil itself
|
|
|
|
];
|
|
|
|
|
2019-10-08 08:39:58 +00: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 17:17:00 +00:00
|
|
|
};
|
2019-10-06 21:01:33 +00:00
|
|
|
|
|
|
|
passthru = {
|
2021-05-14 04:39:34 +00:00
|
|
|
shellPath = "/bin/osh";
|
2019-10-06 21:01:33 +00:00
|
|
|
};
|
2017-08-06 17:17:00 +00:00
|
|
|
}
|