Merge pull request #109848 from AndersonTorres/pkgconfig->pkg-config

tecoc: 20150606 -> unstable-2020-11-03
This commit is contained in:
Anderson Torres 2021-01-19 12:56:35 -03:00 committed by GitHub
commit 725a4dafa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,16 +1,18 @@
{ lib, stdenv, fetchFromGitHub { stdenv
, ncurses }: , lib
, fetchFromGitHub
, ncurses
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "tecoc";
pname = "tecoc-git"; version = "unstable-2020-11-03";
version = "20150606";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "blakemcbride"; owner = "blakemcbride";
repo = "TECOC"; repo = "TECOC";
rev = "d7dffdeb1dfb812e579d6d3b518545b23e1b50cb"; rev = "79fcb6cfd6c5f9759f6ec46aeaf86d5806b13a0b";
sha256 = "11zfa73dlx71c0hmjz5n3wqcvk6082rpb4sss877nfiayisc0njj"; sha256 = "sha256-JooLvoh9CxLHLOXXxE7zA7R9yglr9BGUwX4nrw2/vIw=";
}; };
buildInputs = [ ncurses ]; buildInputs = [ ncurses ];
@ -27,11 +29,19 @@ stdenv.mkDerivation rec {
makeFlags = [ "CC=${stdenv.cc}/bin/cc" "-C src/" ]; makeFlags = [ "CC=${stdenv.cc}/bin/cc" "-C src/" ];
preInstall = ''
install -d $out/bin $out/share/doc/${pname}-${version} $out/lib/teco/macros
'';
installPhase = '' installPhase = ''
mkdir -p $out/bin $out/share/doc/${pname}-${version} $out/lib/teco/macros runHook preInstall
cp src/tecoc $out/bin install -m755 src/tecoc $out/bin
cp src/aaout.txt doc/* $out/share/doc/${pname}-${version} install -m644 src/aaout.txt doc/* $out/share/doc/${pname}-${version}
cp lib/* lib2/* $out/lib/teco/macros install -m644 lib/* lib2/* $out/lib/teco/macros
runHook postInstall
'';
postInstall = ''
(cd $out/bin (cd $out/bin
ln -s tecoc Make ln -s tecoc Make
ln -s tecoc mung ln -s tecoc mung
@ -56,7 +66,9 @@ stdenv.mkDerivation rec {
TECOC is a portable C implementation of TECO-11. TECOC is a portable C implementation of TECO-11.
''; '';
homepage = "https://github.com/blakemcbride/TECOC"; homepage = "https://github.com/blakemcbride/TECOC";
license = { url = "https://github.com/blakemcbride/TECOC/tree/master/doc/readme-1st.txt"; }; license = {
url = "https://github.com/blakemcbride/TECOC/tree/master/doc/readme-1st.txt";
};
maintainers = [ maintainers.AndersonTorres ]; maintainers = [ maintainers.AndersonTorres ];
platforms = platforms.unix; platforms = platforms.unix;
}; };