pyside: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler 2022-01-03 00:48:28 +01:00
parent 9c257d65c0
commit 4cf304289f
2 changed files with 13 additions and 10 deletions

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, cmake, libxml2, libxslt, python3, qt4 }:
{ lib, stdenv, fetchFromGitHub, cmake, libxml2, libxslt, python3, qt4 }:
# This derivation does not provide any Python module and should therefore be called via `all-packages.nix`.
let
@ -8,9 +8,11 @@ stdenv.mkDerivation rec {
pname = "pyside-apiextractor";
version = "0.10.10";
src = fetchurl {
url = "https://github.com/PySide/Apiextractor/archive/${version}.tar.gz";
sha256 = "1zj8yrxy08iv1pk38djxw3faimm226w6wmi0gm32w4yczblylwz3";
src = fetchFromGitHub {
owner = "PySide";
repo = "Apiextractor";
rev = version;
sha256 = "sha256-YH8aYyzv59xiIglZbdNgOPnmEQwNE2GmotAFFfFdMlg=";
};
outputs = [ "out" "dev" ];

View file

@ -1,16 +1,17 @@
{ lib, stdenv, fetchurl, cmake, pysideApiextractor, python3, qt4 }:
{ lib, stdenv, fetchFromGitHub, cmake, pysideApiextractor, python3, qt4 }:
# This derivation does not provide any Python module and should therefore be called via `all-packages.nix`.
let
pythonEnv = python3.withPackages(ps: with ps; [ sphinx ]);
in stdenv.mkDerivation rec {
pname = "pyside-generatorrunner";
version = "0.6.16";
in stdenv.mkDerivation {
name = "${pname}-${version}";
src = fetchurl {
url = "https://github.com/PySide/Generatorrunner/archive/0.6.16.tar.gz";
sha256 = "0vzk3cp0pfbhd921r8f1xkcz96znla39dhj074k623x9k26lj2sj";
src = fetchFromGitHub {
owner = "PySide";
repo = "Generatorrunner";
rev = version;
sha256 = "sha256-JAghKY033RTD5b2elitzVQbbN3PMmT3BHwpqx8N5EYg=";
};
outputs = [ "out" "dev" ];