2019-10-06 17:16:09 +02:00
|
|
|
{ stdenv, lib, fetchurl, fetchpatch, readline }:
|
2019-08-27 13:14:02 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "oil";
|
2019-11-13 10:09:48 +01:00
|
|
|
version = "0.7.pre6";
|
2017-08-06 19:17:00 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.oilshell.org/download/oil-${version}.tar.xz";
|
2019-11-13 10:09:48 +01:00
|
|
|
sha256 = "1yhfrxrqd4jbjsf0g2fkxv8zypcndnikv9g15yp9szgp4sh1r9vv";
|
2017-08-06 19:17:00 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs build
|
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
'';
|
|
|
|
|
2019-10-06 17:16:09 +02:00
|
|
|
buildInputs = [ readline ];
|
|
|
|
configureFlags = [ "--with-readline" ];
|
|
|
|
|
2017-08-06 19:17:00 +02:00
|
|
|
# Stripping breaks the bundles by removing the zip file from the end.
|
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
meta = {
|
2019-08-27 13:14:02 +02:00
|
|
|
description = "A new unix shell";
|
2019-11-13 10:09:48 +01:00
|
|
|
homepage = "https://www.oilshell.org/";
|
2017-08-06 19:17:00 +02:00
|
|
|
|
|
|
|
license = with lib.licenses; [
|
|
|
|
psfl # Includes a portion of the python interpreter and standard library
|
|
|
|
asl20 # Licence for Oil itself
|
|
|
|
];
|
|
|
|
|
2019-10-08 10:39:58 +02:00
|
|
|
maintainers = with lib.maintainers; [ lheckemann alva ];
|
2017-08-06 19:17:00 +02:00
|
|
|
};
|
2019-10-06 23:01:33 +02:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
shellPath = "/bin/osh";
|
|
|
|
};
|
2017-08-06 19:17:00 +02:00
|
|
|
}
|