potassco: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler 2021-12-13 15:34:36 +01:00
parent e89e4b38a1
commit cb448459d0

View file

@ -1,11 +1,13 @@
{ lib, stdenv, fetchzip, cmake }:
{ lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
pname = "clingo";
version = "5.5.1";
src = fetchzip {
url = "https://github.com/potassco/clingo/archive/v${version}.tar.gz";
src = fetchFromGitHub {
owner = "potassco";
repo = "clingo";
rev = "v${version}";
sha256 = "sha256-KBCwGNkz5HqbgXbDxPVcqxMXC8B2+wRI8eZVVXMVpLI=";
};