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

tecoc: 20150606 -> unstable-2020-11-03

authored by Anderson Torres and committed by GitHub 725a4daf 1e5e5bdf

+33 -21
+33 -21
pkgs/applications/editors/tecoc/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub 2 - , ncurses }: 3 4 stdenv.mkDerivation rec { 5 - 6 - pname = "tecoc-git"; 7 - version = "20150606"; 8 9 src = fetchFromGitHub { 10 owner = "blakemcbride"; 11 repo = "TECOC"; 12 - rev = "d7dffdeb1dfb812e579d6d3b518545b23e1b50cb"; 13 - sha256 = "11zfa73dlx71c0hmjz5n3wqcvk6082rpb4sss877nfiayisc0njj"; 14 }; 15 16 buildInputs = [ ncurses ]; 17 18 makefile = if stdenv.hostPlatform.isDarwin 19 - then "makefile.osx" 20 - else if stdenv.hostPlatform.isFreeBSD 21 - then "makefile.bsd" 22 - else if stdenv.hostPlatform.isOpenBSD 23 - then "makefile.bsd" 24 - else if stdenv.hostPlatform.isWindows 25 - then "makefile.win" 26 - else "makefile.linux"; # I think Linux is a safe default... 27 28 makeFlags = [ "CC=${stdenv.cc}/bin/cc" "-C src/" ]; 29 30 installPhase = '' 31 - mkdir -p $out/bin $out/share/doc/${pname}-${version} $out/lib/teco/macros 32 - cp src/tecoc $out/bin 33 - cp src/aaout.txt doc/* $out/share/doc/${pname}-${version} 34 - cp lib/* lib2/* $out/lib/teco/macros 35 (cd $out/bin 36 ln -s tecoc Make 37 ln -s tecoc mung ··· 54 of Editor MACroS for TECO. 55 56 TECOC is a portable C implementation of TECO-11. 57 - ''; 58 homepage = "https://github.com/blakemcbride/TECOC"; 59 - license = { url = "https://github.com/blakemcbride/TECOC/tree/master/doc/readme-1st.txt"; }; 60 maintainers = [ maintainers.AndersonTorres ]; 61 platforms = platforms.unix; 62 };
··· 1 + { stdenv 2 + , lib 3 + , fetchFromGitHub 4 + , ncurses 5 + }: 6 7 stdenv.mkDerivation rec { 8 + pname = "tecoc"; 9 + version = "unstable-2020-11-03"; 10 11 src = fetchFromGitHub { 12 owner = "blakemcbride"; 13 repo = "TECOC"; 14 + rev = "79fcb6cfd6c5f9759f6ec46aeaf86d5806b13a0b"; 15 + sha256 = "sha256-JooLvoh9CxLHLOXXxE7zA7R9yglr9BGUwX4nrw2/vIw="; 16 }; 17 18 buildInputs = [ ncurses ]; 19 20 makefile = if stdenv.hostPlatform.isDarwin 21 + then "makefile.osx" 22 + else if stdenv.hostPlatform.isFreeBSD 23 + then "makefile.bsd" 24 + else if stdenv.hostPlatform.isOpenBSD 25 + then "makefile.bsd" 26 + else if stdenv.hostPlatform.isWindows 27 + then "makefile.win" 28 + else "makefile.linux"; # I think Linux is a safe default... 29 30 makeFlags = [ "CC=${stdenv.cc}/bin/cc" "-C src/" ]; 31 32 + preInstall = '' 33 + install -d $out/bin $out/share/doc/${pname}-${version} $out/lib/teco/macros 34 + ''; 35 + 36 installPhase = '' 37 + runHook preInstall 38 + install -m755 src/tecoc $out/bin 39 + install -m644 src/aaout.txt doc/* $out/share/doc/${pname}-${version} 40 + install -m644 lib/* lib2/* $out/lib/teco/macros 41 + runHook postInstall 42 + ''; 43 + 44 + postInstall = '' 45 (cd $out/bin 46 ln -s tecoc Make 47 ln -s tecoc mung ··· 64 of Editor MACroS for TECO. 65 66 TECOC is a portable C implementation of TECO-11. 67 + ''; 68 homepage = "https://github.com/blakemcbride/TECOC"; 69 + license = { 70 + url = "https://github.com/blakemcbride/TECOC/tree/master/doc/readme-1st.txt"; 71 + }; 72 maintainers = [ maintainers.AndersonTorres ]; 73 platforms = platforms.unix; 74 };