nixpkgs/pkgs/shells/oil/default.nix
2019-08-27 14:14:02 +03:00

34 lines
761 B
Nix

{ stdenv, lib, fetchurl }:
stdenv.mkDerivation rec {
pname = "oil";
version = "0.7.pre3";
src = fetchurl {
url = "https://www.oilshell.org/download/oil-${version}.tar.xz";
sha256 = "01zc36zaasaagr54rnh90k0j7pbnj0cc6a9pvz6gs6pk91i80lqg";
};
postPatch = ''
patchShebangs build
'';
preInstall = ''
mkdir -p $out/bin
'';
# Stripping breaks the bundles by removing the zip file from the end.
dontStrip = true;
meta = {
description = "A new unix shell";
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 ];
};
}