nixpkgs/pkgs/shells/oil/default.nix

43 lines
975 B
Nix
Raw Normal View History

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