nixpkgs/pkgs/shells/oil/default.nix

42 lines
899 B
Nix
Raw Normal View History

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