git.iko.soy/typeable/nixpkgs
on master help sign in
compton{,-git}: bump to v2, set COMPTON_VERSION so '--version' has sane output (#46685)

Previously they both would claim to be 'git--' :).

commit2eed7b735055c7b2d6fabd81dbb5871e2438c1b3 authorWill Dietz <github@wdtz.org> dateThu 20 Sep 2018, 03:00 (8 years ago) parent0e1f3ef
1 file changed+9−5
pkgs/applications/window-managers/compton/default.nix+9−5
pkgs/applications/window-managers/compton/default.nix+9−5
@@ -42,10 +42,12 @@ let
4242 };
4343 });
4444
45− stableSource = {
45+ stableSource = rec {
4646 pname = "compton";
4747 version = "0.1_beta2.5";
4848
49+ COMPTON_VERSION = version;
50+
4951 src = fetchFromGitHub {
5052 owner = "chjj";
5153 repo = "compton";
@@ -58,15 +60,17 @@ let
5860 };
5961 };
6062
61− gitSource = {
63+ gitSource = rec {
6264 pname = "compton-git";
63− version = "2018-08-14";
65+ version = "2";
66+
67+ COMPTON_VERSION = "v${version}";
6468
6569 src = fetchFromGitHub {
6670 owner = "yshui";
6771 repo = "compton";
68− rev = "cac8094ce12cd40706fb48f9ab35354d9ee7c48f";
69− sha256 = "0qif3nx8vszlr06bixasna13pzfaikp86xax9miwnba50517y7v5";
72+ rev = COMPTON_VERSION;
73+ sha256 = "1b6jgkkjbmgm7d7qjs94h722kgbqjagcxznkh2r84hcmcl8pibjq";
7074 };
7175
7276 meta = {