diff options
author | Jeremy Baxter <jtbx@disroot.org> | 2024-02-10 10:14:56 +1300 |
---|---|---|
committer | Jeremy Baxter <jtbx@disroot.org> | 2024-02-10 10:14:56 +1300 |
commit | e03b63cdaf4fc6655089116582bebfb8369ff581 (patch) | |
tree | 491a881f0f7566ced1e73d626dadd0f6d64501e4 /pkgs/by-name/ti | |
parent | cac147d49c4f1e113383ca82e94af011ece1782b (diff) |
tilix: modernize
o use the finalAttrs pattern over the rec expression o use hash over sha256 in the call to fetchFromGitHub o put the stdenv function argument on its own line
Diffstat (limited to 'pkgs/by-name/ti')
-rw-r--r-- | pkgs/by-name/ti/tilix/package.nix | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/pkgs/by-name/ti/tilix/package.nix b/pkgs/by-name/ti/tilix/package.nix index df050dfdaddf8..fba1e51a1a33b 100644 --- a/pkgs/by-name/ti/tilix/package.nix +++ b/pkgs/by-name/ti/tilix/package.nix @@ -1,4 +1,5 @@ -{ lib, stdenv +{ lib +, stdenv , fetchFromGitHub , meson , ninja @@ -19,15 +20,15 @@ , fetchpatch }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "tilix"; version = "1.9.5"; src = fetchFromGitHub { owner = "gnunn1"; repo = "tilix"; - rev = version; - sha256 = "sha256-sPVL5oYDOmloRVm/nONKkC20vZc907c7ixBF6E2PQ8Y="; + rev = finalAttrs.version; + hash = "sha256-sPVL5oYDOmloRVm/nONKkC20vZc907c7ixBF6E2PQ8Y="; }; # Default upstream else LDC fails to link @@ -85,4 +86,4 @@ stdenv.mkDerivation rec { platforms = platforms.linux; mainProgram = "tilix"; }; -} +}) |