nixpkgs/pkgs/shells/oksh/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
829 B
Nix
Raw Normal View History

2022-04-21 17:58:31 +02:00
{ stdenv, lib, fetchFromGitHub, buildPackages }:
2020-12-01 18:51:29 +01:00
stdenv.mkDerivation rec {
pname = "oksh";
2023-11-21 08:03:17 +01:00
version = "7.4";
2020-12-01 18:51:29 +01:00
src = fetchFromGitHub {
owner = "ibara";
repo = pname;
rev = "${pname}-${version}";
2023-11-21 08:03:17 +01:00
sha256 = "sha256-QkWUTqFoEA+XZv0EAHnDtkm9xI+NlQcNqicCvCtXJYc=";
2020-12-01 18:51:29 +01:00
};
2022-05-06 20:39:28 +02:00
strictDeps = true;
2022-04-21 17:58:31 +02:00
postPatch = lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
substituteInPlace configure --replace "./conftest" "echo"
'';
configureFlags = [ "--no-strip" ];
meta = with lib; {
2020-12-01 18:51:29 +01:00
description = "Portable OpenBSD ksh, based on the Public Domain Korn Shell (pdksh)";
homepage = "https://github.com/ibara/oksh";
license = licenses.publicDomain;
maintainers = with maintainers; [ siraben ];
platforms = platforms.all;
};
passthru = {
shellPath = "/bin/oksh";
};
2020-12-01 18:51:29 +01:00
}