cool-old-term: rename to cool-retro-term (close #6071)

The project has changed its name to cool-retro-term. The project also added a
dependency that is included as a submodule. I added this dependency as a
separate expression.

authored by Sven Keidel and committed by Vladimír Čunát b50cabf2 59d1d460

+84 -54
-53
pkgs/applications/misc/cool-old-term/default.nix
··· 1 - { stdenv, fetchFromGitHub, qt5 }: 2 - 3 - stdenv.mkDerivation rec { 4 - version = "0.9"; 5 - name = "cool-old-term-${version}"; 6 - 7 - src = fetchFromGitHub { 8 - owner = "Swordifish90"; 9 - repo = "cool-old-term"; 10 - rev = "2494bc05228290545df8c59c05624a4b903e9068"; 11 - sha256 = "8462f3eded7b2219acc143258544b0dfac32d81e10cac61ff14276d426704c93"; 12 - }; 13 - 14 - buildInputs = [ qt5 ]; 15 - 16 - buildPhase = '' 17 - pushd ./konsole-qml-plugin 18 - qmake konsole-qml-plugin.pro PREFIX=$out 19 - make 20 - popd 21 - ''; 22 - 23 - installPhase = '' 24 - pushd ./konsole-qml-plugin 25 - make install 26 - popd 27 - 28 - install -d $out/bin $out/lib/cool-old-term $out/share/cool-old-term 29 - cp -a ./imports $out/lib/cool-old-term/ 30 - cp -a ./app $out/share/cool-old-term/ 31 - 32 - cat > $out/bin/cool-old-term <<EOF 33 - #!${stdenv.shell} 34 - ${qt5}/bin/qmlscene -I $out/lib/cool-old-term/imports $out/share/cool-old-term/app/main.qml 35 - EOF 36 - chmod a+x $out/bin/cool-old-term 37 - ''; 38 - 39 - enableParallelBuilding = true; 40 - 41 - meta = { 42 - description = "Terminal emulator which mimics the old cathode display"; 43 - longDescription = '' 44 - cool-old-term is a terminal emulator which tries to mimic the look and 45 - feel of the old cathode tube screens. It has been designed to be 46 - eye-candy, customizable, and reasonably lightweight. 47 - ''; 48 - homepage = "https://github.com/Swordifish90/cool-old-term"; 49 - licenses = with stdenv.lib.licenses; [ gpl2 gpl3 ]; 50 - platforms = stdenv.lib.platforms.linux; 51 - maintainers = with stdenv.lib.maintainers; [ skeidel ]; 52 - }; 53 - }
···
+47
pkgs/applications/misc/cool-retro-term/default.nix
···
··· 1 + { stdenv, fetchgit, makeWrapper, qt5, qmltermwidget }: 2 + 3 + stdenv.mkDerivation rec { 4 + version = "1.0.0"; 5 + name = "cool-retro-term-${version}"; 6 + 7 + src = fetchgit { 8 + url = "https://github.com/Swordfish90/cool-retro-term.git"; 9 + rev = "refs/tags/v${version}"; 10 + sha256 = "042ikarg6n0c09niwrm987pkzi8xjxxdrg2nqvk9pj7lgmmkkfn1"; 11 + fetchSubmodules = false; 12 + }; 13 + 14 + patchPhase = '' 15 + sed -i -e '/qmltermwidget/d' cool-retro-term.pro 16 + ''; 17 + 18 + buildInputs = [ makeWrapper qt5 qmltermwidget ]; 19 + 20 + configurePhase = "qmake PREFIX=$out"; 21 + 22 + installPhase = "make -j $NIX_BUILD_CORES INSTALL_ROOT=$out install"; 23 + 24 + preFixup = '' 25 + mv $out/usr/share $out/share 26 + mv $out/usr/bin $out/bin 27 + rmdir $out/usr 28 + 29 + wrapProgram $out/bin/cool-retro-term \ 30 + --prefix QML2_IMPORT_PATH : "${qmltermwidget}/lib/qml/" 31 + ''; 32 + 33 + enableParallelBuilding = true; 34 + 35 + meta = { 36 + description = "Terminal emulator which mimics the old cathode display"; 37 + longDescription = '' 38 + cool-retro-term is a terminal emulator which tries to mimic the look and 39 + feel of the old cathode tube screens. It has been designed to be 40 + eye-candy, customizable, and reasonably lightweight. 41 + ''; 42 + homepage = "https://github.com/Swordifish90/cool-retro-term"; 43 + licenses = with stdenv.lib.licenses; [ gpl2 gpl3 ]; 44 + platforms = stdenv.lib.platforms.linux; 45 + maintainers = with stdenv.lib.maintainers; [ skeidel ]; 46 + }; 47 + }
+33
pkgs/development/libraries/qmltermwidget/default.nix
···
··· 1 + { stdenv, fetchgit, qt5 }: 2 + 3 + stdenv.mkDerivation rec { 4 + version = "0.1.0"; 5 + name = "qmltermwidget-${version}"; 6 + 7 + src = fetchgit { 8 + url = "https://github.com/Swordfish90/qmltermwidget.git"; 9 + rev = "refs/tags/v${version}"; 10 + sha256 = "19pz27jsdpa3pybj8sghmmd1zqgr73js1mp3875rhx158dav37nz"; 11 + }; 12 + 13 + buildInputs = [ qt5 ]; 14 + 15 + patchPhase = '' 16 + substituteInPlace qmltermwidget.pro \ 17 + --replace '$$[QT_INSTALL_QML]' "/lib/qml/" 18 + ''; 19 + 20 + configurePhase = "qmake PREFIX=$out"; 21 + 22 + installPhase=''make INSTALL_ROOT="$out" install''; 23 + 24 + enableParallelBuilding = true; 25 + 26 + meta = { 27 + description = "This project is a QML port of qtermwidget"; 28 + homepage = "https://github.com/Swordifish90/qmltermwidget"; 29 + licenses = with stdenv.lib.licenses; [ gpl2 ]; 30 + platforms = stdenv.lib.platforms.linux; 31 + maintainers = with stdenv.lib.maintainers; [ skeidel ]; 32 + }; 33 + }
+4 -1
pkgs/top-level/all-packages.nix
··· 945 946 convmv = callPackage ../tools/misc/convmv { }; 947 948 - cool-old-term = callPackage ../applications/misc/cool-old-term { }; 949 950 coreutils = callPackage ../tools/misc/coreutils 951 { ··· 6946 qimageblitz = callPackage ../development/libraries/qimageblitz {}; 6947 6948 qjson = callPackage ../development/libraries/qjson { }; 6949 6950 qoauth = callPackage ../development/libraries/qoauth { }; 6951 ··· 13422 sqliteInteractive = sqlite-interactive; # added 2014-12-06 13423 nfsUtils = nfs-utils; # added 2014-12-06 13424 buildbotSlave = buildbot-slave; # added 2014-12-09 13425 13426 opentsdb = callPackage ../tools/misc/opentsdb {}; 13427
··· 945 946 convmv = callPackage ../tools/misc/convmv { }; 947 948 + cool-retro-term = callPackage ../applications/misc/cool-retro-term { }; 949 950 coreutils = callPackage ../tools/misc/coreutils 951 { ··· 6946 qimageblitz = callPackage ../development/libraries/qimageblitz {}; 6947 6948 qjson = callPackage ../development/libraries/qjson { }; 6949 + 6950 + qmltermwidget = callPackage ../development/libraries/qmltermwidget { }; 6951 6952 qoauth = callPackage ../development/libraries/qoauth { }; 6953 ··· 13424 sqliteInteractive = sqlite-interactive; # added 2014-12-06 13425 nfsUtils = nfs-utils; # added 2014-12-06 13426 buildbotSlave = buildbot-slave; # added 2014-12-09 13427 + cool-old-term = cool-retro-term; # added 2015-01-31 13428 13429 opentsdb = callPackage ../tools/misc/opentsdb {}; 13430