Skip to content

Commit 5c33594

Browse files
SFrijterssini
authored andcommitted
equilux-theme: modernize derivation
1 parent 758eedf commit 5c33594

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

pkgs/by-name/eq/equilux-theme/package.nix

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
bc,
1212
}:
1313

14-
stdenv.mkDerivation rec {
14+
stdenv.mkDerivation (finalAttrs: {
1515
pname = "equilux-theme";
1616
version = "20181029";
1717

1818
src = fetchFromGitHub {
1919
owner = "ddnexus";
2020
repo = "equilux-theme";
21-
rev = "equilux-v${version}";
22-
sha256 = "0lv2yyxhnmnkwxp576wnb01id4fp734b5z5n0l67sg5z7vc2h8fc";
21+
tag = "equilux-v${finalAttrs.version}";
22+
hash = "sha256-zCEo2D6/PH0MBbb8ssg415EWA1iWm1Nu59NWC7v3YlM=";
2323
};
2424

2525
nativeBuildInputs = [
@@ -47,11 +47,11 @@ stdenv.mkDerivation rec {
4747
rm $out/share/themes/*/COPYING
4848
'';
4949

50-
meta = with lib; {
51-
inherit (src.meta) homepage;
50+
meta = {
51+
inherit (finalAttrs.src.meta) homepage;
5252
description = "Material Design theme for GNOME/GTK based desktop environments";
53-
license = licenses.gpl2;
54-
platforms = platforms.all;
55-
maintainers = [ maintainers.fpletz ];
53+
license = lib.licenses.gpl2;
54+
platforms = lib.platforms.all;
55+
maintainers = [ lib.maintainers.fpletz ];
5656
};
57-
}
57+
})

0 commit comments

Comments
 (0)