compton, compton-git: Merge derivations

+68 -112
+67 -49
pkgs/applications/window-managers/compton/default.nix
··· 3 3 , dbus, libconfig, libdrm, libGL, pcre, libX11, libXcomposite, libXdamage 4 4 , libXinerama, libXrandr, libXrender, libXext, xwininfo }: 5 5 6 - stdenv.mkDerivation rec { 7 - name = "compton-0.1_beta2.5"; 6 + let 7 + common = source: stdenv.mkDerivation (source // rec { 8 + name = "${source.pname}-${source.version}"; 8 9 9 - src = fetchFromGitHub { 10 - owner = "chjj"; 11 - repo = "compton"; 12 - rev = "b7f43ee67a1d2d08239a2eb67b7f50fe51a592a8"; 13 - sha256 = "1p7ayzvm3c63q42na5frznq3rlr1lby2pdgbvzm1zl07wagqss18"; 14 - }; 15 - 16 - buildInputs = [ 17 - libX11 18 - libXcomposite 19 - libXdamage 20 - libXrender 21 - libXrandr 22 - libXext 23 - libXinerama 24 - libdrm 25 - pcre 26 - libconfig 27 - dbus 28 - libGL 29 - ]; 10 + buildInputs = [ 11 + dbus libX11 libXcomposite libXdamage libXrender libXrandr libXext 12 + libXinerama libdrm pcre libxml2 libxslt libconfig libGL 13 + ]; 30 14 31 - nativeBuildInputs = [ 32 - pkgconfig 33 - asciidoc 34 - libxml2 35 - docbook_xml_dtd_45 36 - docbook_xsl 37 - libxslt 38 - makeWrapper 39 - ]; 40 - 41 - installFlags = [ "PREFIX=$(out)" ]; 15 + nativeBuildInputs = [ 16 + pkgconfig 17 + asciidoc 18 + docbook_xml_dtd_45 19 + docbook_xsl 20 + makeWrapper 21 + ]; 42 22 43 - postInstall = '' 44 - wrapProgram $out/bin/compton-trans \ 45 - --prefix PATH : ${lib.makeBinPath [ xwininfo ]} 46 - ''; 23 + installFlags = [ "PREFIX=$(out)" ]; 47 24 48 - meta = with stdenv.lib; { 49 - homepage = https://github.com/chjj/compton/; 50 - description = "A fork of XCompMgr, a sample compositing manager for X servers"; 51 - longDescription = '' 52 - A fork of XCompMgr, which is a sample compositing manager for X 53 - servers supporting the XFIXES, DAMAGE, RENDER, and COMPOSITE 54 - extensions. It enables basic eye-candy effects. This fork adds 55 - additional features, such as additional effects, and a fork at a 56 - well-defined and proper place. 25 + postInstall = '' 26 + wrapProgram $out/bin/compton-trans \ 27 + --prefix PATH : ${lib.makeBinPath [ xwininfo ]} 57 28 ''; 58 - license = licenses.mit; 59 - platforms = platforms.linux; 29 + 30 + meta = with lib; { 31 + description = "A fork of XCompMgr, a sample compositing manager for X servers"; 32 + longDescription = '' 33 + A fork of XCompMgr, which is a sample compositing manager for X 34 + servers supporting the XFIXES, DAMAGE, RENDER, and COMPOSITE 35 + extensions. It enables basic eye-candy effects. This fork adds 36 + additional features, such as additional effects, and a fork at a 37 + well-defined and proper place. 38 + ''; 39 + license = licenses.mit; 40 + maintainers = with maintainers; [ ertes enzime twey ]; 41 + platforms = platforms.linux; 42 + }; 43 + }); 44 + 45 + stableSource = { 46 + pname = "compton"; 47 + version = "0.1_beta2.5"; 48 + 49 + src = fetchFromGitHub { 50 + owner = "chjj"; 51 + repo = "compton"; 52 + rev = "b7f43ee67a1d2d08239a2eb67b7f50fe51a592a8"; 53 + sha256 = "1p7ayzvm3c63q42na5frznq3rlr1lby2pdgbvzm1zl07wagqss18"; 54 + }; 55 + 56 + meta = { 57 + homepage = https://github.com/chjj/compton/; 58 + }; 60 59 }; 60 + 61 + gitSource = { 62 + pname = "compton-git"; 63 + version = "2018-08-14"; 64 + 65 + src = fetchFromGitHub { 66 + owner = "yshui"; 67 + repo = "compton"; 68 + rev = "cac8094ce12cd40706fb48f9ab35354d9ee7c48f"; 69 + sha256 = "0qif3nx8vszlr06bixasna13pzfaikp86xax9miwnba50517y7v5"; 70 + }; 71 + 72 + meta = { 73 + homepage = https://github.com/yshui/compton/; 74 + }; 75 + }; 76 + in { 77 + compton = common stableSource; 78 + compton-git = common gitSource; 61 79 }
-60
pkgs/applications/window-managers/compton/git.nix
··· 1 - { stdenv, fetchFromGitHub, asciidoc, dbus, docbook_xml_dtd_45, 2 - docbook_xsl, libconfig, libdrm, libxml2, libxslt, libGLU_combined, pcre, 3 - pkgconfig, libXcomposite, libXdamage, libXext, libXfixes, libXinerama, 4 - libXrandr, libXrender, xwininfo }: 5 - 6 - stdenv.mkDerivation rec { 7 - name = "compton-git-${version}"; 8 - version = "2018-08-14"; 9 - 10 - src = fetchFromGitHub { 11 - owner = "yshui"; 12 - repo = "compton"; 13 - rev = "cac8094ce12cd40706fb48f9ab35354d9ee7c48f"; 14 - sha256 = "0qif3nx8vszlr06bixasna13pzfaikp86xax9miwnba50517y7v5"; 15 - }; 16 - 17 - nativeBuildInputs = [ 18 - asciidoc 19 - docbook_xml_dtd_45 20 - docbook_xsl 21 - pkgconfig 22 - ]; 23 - 24 - buildInputs = [ 25 - dbus 26 - libXcomposite 27 - libXdamage 28 - libXext 29 - libXfixes 30 - libXinerama 31 - libXrandr 32 - libXrender 33 - libconfig 34 - libdrm 35 - libxml2 36 - libxslt 37 - libGLU_combined 38 - pcre 39 - ]; 40 - 41 - propagatedBuildInputs = [ xwininfo ]; 42 - 43 - installFlags = "PREFIX=$(out)"; 44 - 45 - meta = with stdenv.lib; { 46 - description = 47 - "A fork of XCompMgr, a sample compositing manager for X servers (git version)"; 48 - homepage = https://github.com/yshui/compton/; 49 - license = licenses.mit; 50 - longDescription = '' 51 - A fork of XCompMgr, which is a sample compositing manager for X 52 - servers supporting the XFIXES, DAMAGE, RENDER, and COMPOSITE 53 - extensions. It enables basic eye-candy effects. This fork adds 54 - additional features, such as additional effects, and a fork at a 55 - well-defined and proper place. 56 - ''; 57 - maintainers = with maintainers; [ ertes enzime twey ]; 58 - platforms = platforms.linux; 59 - }; 60 - }
+1 -3
pkgs/top-level/all-packages.nix
··· 19364 19364 19365 19365 inherit (xorg) xcompmgr; 19366 19366 19367 - compton = callPackage ../applications/window-managers/compton { }; 19368 - 19369 - compton-git = callPackage ../applications/window-managers/compton/git.nix { }; 19367 + inherit (callPackage ../applications/window-managers/compton {}) compton compton-git; 19370 19368 19371 19369 xdaliclock = callPackage ../tools/misc/xdaliclock {}; 19372 19370