Use fetchFromSourcehut

This commit is contained in:
luc65r 2020-10-31 13:20:43 +01:00 committed by Lucas Ransan
parent 83a0627f33
commit 2b9f10dbe9
No known key found for this signature in database
GPG key ID: 37E8293E1B8B2307
4 changed files with 21 additions and 15 deletions

View file

@ -1,5 +1,5 @@
{ lib { lib
, fetchurl , fetchFromSourcehut
, rustPlatform , rustPlatform
, pkg-config , pkg-config
, wrapGAppsHook , wrapGAppsHook
@ -15,9 +15,11 @@ rustPlatform.buildRustPackage rec {
pname = "castor"; pname = "castor";
version = "0.8.16"; version = "0.8.16";
src = fetchurl { src = fetchFromSourcehut {
url = "https://git.sr.ht/~julienxx/castor/archive/${version}.tar.gz"; owner = "~julienxx";
sha256 = "1qwsprwazkzcs70h219fhh5jj5s5hm1k120fn3pk4qivii4lyhah"; repo = pname;
rev = version;
sha256 = "0rwg1w7srjwa23mkypl8zk6674nhph4xsc6nc01f6g5k959szylr";
}; };
cargoSha256 = "0yn2kfiaz6d8wc8rdqli2pwffp5vb1v3zi7520ysrd5b6fc2csf2"; cargoSha256 = "0yn2kfiaz6d8wc8rdqli2pwffp5vb1v3zi7520ysrd5b6fc2csf2";

View file

@ -1,12 +1,14 @@
{ lib, stdenv, fetchhg, meson, ninja, pkg-config, wlroots, wayland, wayland-protocols { lib, stdenv, fetchFromSourcehut, meson, ninja, pkg-config, wlroots, wayland, wayland-protocols
, libX11, libGL }: , libX11, libGL }:
stdenv.mkDerivation { stdenv.mkDerivation rec {
name = "glpaper"; pname = "glpaper";
version = "unstable-2020-10-11"; version = "unstable-2020-10-11";
src = fetchhg { src = fetchFromSourcehut {
url = "https://hg.sr.ht/~scoopta/glpaper"; owner = "~scoopta";
repo = pname;
vc = "hg";
rev = "9e7ec7cd270af330039c395345c7d23c04682267"; rev = "9e7ec7cd270af330039c395345c7d23c04682267";
sha256 = "sha256-yBHRg6eg+PK/ixuM0MBty3RJY9qcemr3Dt+8SAitqnk="; sha256 = "sha256-yBHRg6eg+PK/ixuM0MBty3RJY9qcemr3Dt+8SAitqnk=";
}; };

View file

@ -1,11 +1,12 @@
{ lib, stdenv, fetchgit, port ? "1234" }: { lib, stdenv, fetchFromSourcehut, port ? "1234" }:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "among-sus-unstable"; pname = "among-sus-unstable";
version = "2020-10-29"; version = "2020-10-29";
src = fetchgit { src = fetchFromSourcehut {
url = "https://git.sr.ht/~martijnbraam/among-sus"; owner = "~martijnbraam";
repo = "among-sus";
rev = "1f4c8d800d025d36ac66826937161be3252fbc57"; rev = "1f4c8d800d025d36ac66826937161be3252fbc57";
sha256 = "19jq7ygh9l11dl1h6702bg57m04y35nqd6yqx1rgp1kxwhp45xyh"; sha256 = "19jq7ygh9l11dl1h6702bg57m04y35nqd6yqx1rgp1kxwhp45xyh";
}; };

View file

@ -1,11 +1,12 @@
{ lib, fetchgit, rustPlatform, pkg-config, openssl }: { lib, fetchFromSourcehut, rustPlatform, pkg-config, openssl }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "eidolon"; pname = "eidolon";
version = "1.4.6"; version = "1.4.6";
src = fetchgit { src = fetchFromSourcehut {
url = "https://git.sr.ht/~nicohman/eidolon"; owner = "~nicohman";
repo = pname;
rev = version; rev = version;
sha256 = "1yn3k569pxzw43mmsk97088xpkdc714rks3ncchbb6ccx25kgxrr"; sha256 = "1yn3k569pxzw43mmsk97088xpkdc714rks3ncchbb6ccx25kgxrr";
}; };