1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-01 18:12:46 +00:00
nixpkgs/pkgs/shells/oil/default.nix

42 lines
898 B
Nix
Raw Normal View History

2020-04-21 13:45:04 +01:00
{ stdenv, lib, fetchurl, readline }:
2019-08-27 12:14:02 +01:00
stdenv.mkDerivation rec {
pname = "oil";
2021-02-10 19:58:54 +00:00
version = "0.8.7";
2017-08-06 18:17:00 +01:00
src = fetchurl {
url = "https://www.oilshell.org/download/oil-${version}.tar.xz";
2021-02-10 19:58:54 +00:00
sha256 = "sha256-KcXu1u/MvvbCLb5a7D09NvfJPaeo0c8Z/Czuk7XR23M=";
2017-08-06 18:17:00 +01:00
};
postPatch = ''
patchShebangs build
'';
preInstall = ''
mkdir -p $out/bin
'';
2019-10-06 16:16:09 +01:00
buildInputs = [ readline ];
configureFlags = [ "--with-readline" ];
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
];
2019-10-08 09:39:58 +01:00
maintainers = with lib.maintainers; [ lheckemann alva ];
2017-08-06 18:17:00 +01:00
};
2019-10-06 22:01:33 +01:00
passthru = {
shellPath = "/bin/osh";
};
2017-08-06 18:17:00 +01:00
}