nixpkgs/pkgs/shells/oil/default.nix

35 lines
761 B
Nix
Raw Normal View History

{ stdenv, lib, fetchurl }:
2019-08-27 11:14:02 +00:00
stdenv.mkDerivation rec {
pname = "oil";
version = "0.7.pre3";
2017-08-06 17:17:00 +00:00
src = fetchurl {
url = "https://www.oilshell.org/download/oil-${version}.tar.xz";
2019-08-27 11:14:02 +00:00
sha256 = "01zc36zaasaagr54rnh90k0j7pbnj0cc6a9pvz6gs6pk91i80lqg";
2017-08-06 17:17:00 +00: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 11:14:02 +00:00
description = "A new unix shell";
2017-08-06 17:17:00 +00: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 ];
};
}