postiats-utilities: use fetchFromGitHub and pname&version

This commit is contained in:
Felix Buehler 2021-06-20 16:14:51 +02:00
parent 567fb83759
commit c1416deae1

View file

@ -1,10 +1,13 @@
{ lib, stdenv, fetchurl, python3, python3Packages }:
{ lib, stdenv, fetchFromGitHub, python3, python3Packages }:
stdenv.mkDerivation {
name = "postiats-utilities-2.0.1";
src = fetchurl {
url = "https://github.com/Hibou57/PostiATS-Utilities/archive/v2.0.1.tar.gz";
sha256 = "12jlzqigmaa9m37x0nq5v3gq8v61m73i5kzdnsm06chf0przpaix";
stdenv.mkDerivation rec {
pname = "postiats-utilities";
version = "2.0.1";
src = fetchFromGitHub {
owner = "Hibou57";
repo = "PostiATS-Utilities";
rev = "v${version}";
sha256 = "1238zp6sh60rdqbzff0w5c36w2z1jr44qnv43qidmcp19zvr7jd5";
};
meta = with lib; {