i3-gaps: use pname and version, fetchFromGitHub, cleanup

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
fortuneteller2k 2021-05-22 22:26:54 +08:00
parent cc345ca4d9
commit dc50511ad1

View File

@ -1,13 +1,14 @@
{ fetchurl, lib, i3, autoreconfHook }: { fetchFromGitHub, lib, i3 }:
i3.overrideAttrs (oldAttrs : rec { i3.overrideAttrs (oldAttrs : rec {
pname = "i3-gaps";
name = "i3-gaps-${version}";
version = "4.19.1"; version = "4.19.1";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/Airblader/i3/releases/download/${version}/i3-${version}.tar.xz"; owner = "Airblader";
sha256 = "sha256-+yZ4Pc7zPZfwgBKbjQsrlXxIaxJBmIdE47lljx8FZG0="; repo = "i3";
rev = version;
sha256 = "sha256-Ydks0hioGAnVBGKraoy3a7Abq9/vHmSne+VFbrYXCug=";
}; };
meta = with lib; { meta = with lib; {