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 {
name = "i3-gaps-${version}";
pname = "i3-gaps";
version = "4.19.1";
src = fetchurl {
url = "https://github.com/Airblader/i3/releases/download/${version}/i3-${version}.tar.xz";
sha256 = "sha256-+yZ4Pc7zPZfwgBKbjQsrlXxIaxJBmIdE47lljx8FZG0=";
src = fetchFromGitHub {
owner = "Airblader";
repo = "i3";
rev = version;
sha256 = "sha256-Ydks0hioGAnVBGKraoy3a7Abq9/vHmSne+VFbrYXCug=";
};
meta = with lib; {