forked from mirrors/nixpkgs
35 lines
761 B
Nix
35 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 ];
|
|
};
|
|
}
|