git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commitb50cabf2d4c1175da48af4df3132b246aa1c8d12 authorSven Keidel <svenkeidel@googlemail.com> dateFri 30 Jan 2015, 22:48 (12 years ago) parent59d1d46
4 files changed+84−54
pkgs/applications/misc/cool-old-term/default.nix−53 pkgs/applications/misc/cool-retro-term/default.nix+47 pkgs/development/libraries/qmltermwidget/default.nix+33 pkgs/top-level/all-packages.nix+4−1
pkgs/applications/misc/cool-old-term/default.nixdeleted−53
@@ -1,53 +0,0 @@
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−}
pkgs/applications/misc/cool-retro-term/default.nixnew file+47
@@ -0,0 +1,47 @@
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+}
pkgs/development/libraries/qmltermwidget/default.nixnew file+33
@@ -0,0 +1,33 @@
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+}
pkgs/top-level/all-packages.nix+4−1
@@ -945,7 +945,7 @@ let
945945
946946 convmv = callPackage ../tools/misc/convmv { };
947947
948− cool-old-term = callPackage ../applications/misc/cool-old-term { };
948+ cool-retro-term = callPackage ../applications/misc/cool-retro-term { };
949949
950950 coreutils = callPackage ../tools/misc/coreutils
951951 {
@@ -6947,6 +6947,8 @@ let
69476947
69486948 qjson = callPackage ../development/libraries/qjson { };
69496949
6950+ qmltermwidget = callPackage ../development/libraries/qmltermwidget { };
6951+
69506952 qoauth = callPackage ../development/libraries/qoauth { };
69516953
69526954 quazip = callPackage ../development/libraries/quazip {
@@ -13422,6 +13424,7 @@ let
1342213424 sqliteInteractive = sqlite-interactive; # added 2014-12-06
1342313425 nfsUtils = nfs-utils; # added 2014-12-06
1342413426 buildbotSlave = buildbot-slave; # added 2014-12-09
13427+ cool-old-term = cool-retro-term; # added 2015-01-31
1342513428
1342613429 opentsdb = callPackage ../tools/misc/opentsdb {};
1342713430