Use fetchFromSourcehut
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{ lib
|
||||
, fetchurl
|
||||
, fetchFromSourcehut
|
||||
, rustPlatform
|
||||
, pkg-config
|
||||
, wrapGAppsHook
|
||||
@@ -15,9 +15,11 @@ rustPlatform.buildRustPackage rec {
|
||||
pname = "castor";
|
||||
version = "0.8.16";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://git.sr.ht/~julienxx/castor/archive/${version}.tar.gz";
|
||||
sha256 = "1qwsprwazkzcs70h219fhh5jj5s5hm1k120fn3pk4qivii4lyhah";
|
||||
src = fetchFromSourcehut {
|
||||
owner = "~julienxx";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0rwg1w7srjwa23mkypl8zk6674nhph4xsc6nc01f6g5k959szylr";
|
||||
};
|
||||
|
||||
cargoSha256 = "0yn2kfiaz6d8wc8rdqli2pwffp5vb1v3zi7520ysrd5b6fc2csf2";
|
||||
|
||||
Reference in New Issue
Block a user