1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 19:51:17 +00:00
nixpkgs/pkgs/shells/oksh/default.nix

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

42 lines
898 B
Nix
Raw Normal View History

{ stdenv
, lib
, fetchFromGitHub
, buildPackages
, ncurses
}:
2020-12-01 17:51:29 +00:00
stdenv.mkDerivation rec {
pname = "oksh";
2024-04-07 14:24:22 +01:00
version = "7.5";
2020-12-01 17:51:29 +00:00
src = fetchFromGitHub {
owner = "ibara";
repo = pname;
rev = "${pname}-${version}";
2024-04-07 14:24:22 +01:00
sha256 = "sha256-r75jjH1E7/36b0ebjsZK7rAuOHEyaIta5Bi8nB4zVjo=";
2020-12-01 17:51:29 +00:00
};
2022-05-06 19:39:28 +01:00
strictDeps = true;
2022-04-21 16:58:31 +01:00
postPatch = lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
substituteInPlace configure --replace "./conftest" "echo"
'';
configureFlags = [ "--no-strip" ];
buildInputs = [ ncurses ];
meta = with lib; {
2020-12-01 17:51:29 +00:00
description = "Portable OpenBSD ksh, based on the Public Domain Korn Shell (pdksh)";
mainProgram = "oksh";
2020-12-01 17:51:29 +00:00
homepage = "https://github.com/ibara/oksh";
license = licenses.publicDomain;
maintainers = with maintainers; [ siraben ];
platforms = platforms.all;
};
passthru = {
shellPath = "/bin/oksh";
};
2020-12-01 17:51:29 +00:00
}