xkblayout-state: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler 2021-12-13 15:35:45 +01:00
parent a20eefdccd
commit 479626a218

View file

@ -1,12 +1,14 @@
{ lib, stdenv, fetchurl, qt4 }:
{ lib, stdenv, fetchFromGitHub, qt4 }:
stdenv.mkDerivation rec {
pname = "xkblayout-state";
version = "1b";
src = fetchurl {
url = "https://github.com/nonpop/${pname}/archive/v${version}.tar.gz";
sha256 = "1m1nnplrdb2mclhj0881wf78ckvdnyk24g4k4p5s5gpd96cxxwnx";
src = fetchFromGitHub {
owner = "nonpop";
repo = "xkblayout-state";
rev = "v${version}";
sha256 = "sha256-diorqwDEBdzcBteKvhRisQaY3bx5seaOaWSaPwBkWDo=";
};
buildInputs = [ qt4 ];