2019-10-04 22:05:23 +02:00
|
|
|
{ stdenv, lib, fetchurl, fetchpatch }:
|
2019-08-27 13:14:02 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "oil";
|
2019-10-04 22:05:23 +02:00
|
|
|
version = "0.7.pre5";
|
2017-08-06 19:17:00 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.oilshell.org/download/oil-${version}.tar.xz";
|
2019-10-04 22:05:23 +02:00
|
|
|
sha256 = "1vpk4my8lp7wik8ywspawimya2a7hb1qjkp5vpm7ypmkya5jqivc";
|
2017-08-06 19:17:00 +02:00
|
|
|
};
|
|
|
|
|
2019-10-04 22:05:23 +02:00
|
|
|
|
|
|
|
# TODO remove at next bump
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/oilshell/oil/commit/81551d76ae5a8b53179f2472492d0b44f13f84fd.patch";
|
|
|
|
sha256 = "0v99cx13ajqmf489vvxkqhqi9pjyc8jn0dgc8wp78gsv9js2k7km";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-08-06 19:17:00 +02:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs build
|
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
# 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";
|
2017-08-06 19:17:00 +02:00
|
|
|
homepage = https://www.oilshell.org/;
|
|
|
|
|
|
|
|
license = with lib.licenses; [
|
|
|
|
psfl # Includes a portion of the python interpreter and standard library
|
|
|
|
asl20 # Licence for Oil itself
|
|
|
|
];
|
|
|
|
|
|
|
|
maintainers = with lib.maintainers; [ lheckemann ];
|
|
|
|
};
|
|
|
|
}
|