rs: reformat
This commit is contained in:
parent
d99becc893
commit
71d8b8afd8
1 changed files with 18 additions and 4 deletions
|
@ -1,4 +1,9 @@
|
||||||
{ lib, stdenv, fetchurl, libbsd }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchurl
|
||||||
|
, installShellFiles
|
||||||
|
, libbsd
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "rs";
|
pname = "rs";
|
||||||
|
@ -9,18 +14,29 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "0gxwlfk7bzivpp2260w2r6gkyl7vdi05cggn1fijfnp8kzf1b4li";
|
sha256 = "0gxwlfk7bzivpp2260w2r6gkyl7vdi05cggn1fijfnp8kzf1b4li";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
buildInputs = [ libbsd ];
|
buildInputs = [ libbsd ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
|
|
||||||
${stdenv.cc}/bin/cc utf8.c rs.c -o rs -lbsd
|
${stdenv.cc}/bin/cc utf8.c rs.c -o rs -lbsd
|
||||||
|
|
||||||
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
install -Dm 755 rs -t $out/bin
|
install -Dm 755 rs -t $out/bin
|
||||||
install -Dm 644 rs.1 -t $out/share/man/man1
|
installManPage rs.1
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
homepage = "http://www.mirbsd.org/htman/i386/man1/rs.htm";
|
||||||
description = "Reshape a data array from standard input";
|
description = "Reshape a data array from standard input";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
rs reads the standard input, interpreting each line as a row of blank-
|
rs reads the standard input, interpreting each line as a row of blank-
|
||||||
|
@ -43,8 +59,6 @@ stdenv.mkDerivation rec {
|
||||||
to control presentation of the output columns, including transposition of
|
to control presentation of the output columns, including transposition of
|
||||||
the rows and columns.
|
the rows and columns.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
homepage = "https://www.mirbsd.org/htman/i386/man1/rs.htm";
|
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = with maintainers; [ AndersonTorres ];
|
maintainers = with maintainers; [ AndersonTorres ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
|
|
Loading…
Reference in a new issue