uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
50
pkgs/shells/loksh/default.nix
Normal file
50
pkgs/shells/loksh/default.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, meson
|
||||
, ninja
|
||||
, pkg-config
|
||||
, ncurses
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "loksh";
|
||||
version = "7.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dimkr";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
fetchSubmodules = true;
|
||||
sha256 = "sha256-q5RiY9/xEFCk+oHlxgNwDOB+TNjRWHKzU2kQH2LjCWY=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
ncurses
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
mv $out/bin/ksh $out/bin/loksh
|
||||
mv $out/share/man/man1/ksh.1 $out/share/man/man1/loksh.1
|
||||
mv $out/share/man/man1/sh.1 $out/share/man/man1/loksh-sh.1
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
shellPath = "/bin/loksh";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Linux port of OpenBSD's ksh";
|
||||
homepage = "https://github.com/dimkr/loksh";
|
||||
license = licenses.publicDomain;
|
||||
maintainers = with maintainers; [ cameronnemo ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue