treewide: simplify rev/repo arguments in src
+ use fetchFromGithub where possible
This commit is contained in:
committed by
Jonathan Ringer
parent
c6afa8820b
commit
2c931312ce
@@ -1,13 +1,14 @@
|
||||
{ stdenv, fetchgit, pkgconfig, autoconf, automake, openssl, libgsf, gmp }:
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, autoconf, automake, openssl, libgsf, gmp }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
pname = "crackxls";
|
||||
version = "0.4";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://github.com/GavinSmith0123/crackxls2003.git";
|
||||
rev = "refs/tags/v${version}";
|
||||
src = fetchFromGitHub {
|
||||
owner = "GavinSmith0123";
|
||||
repo = "crackxls2003";
|
||||
rev = "v${version}";
|
||||
sha256 = "0q5jl7hcds3f0rhly3iy4fhhbyh9cdrfaw7zdrazzf1wswwhyssz";
|
||||
};
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ let
|
||||
src = fetchFromGitHub {
|
||||
owner = "google";
|
||||
repo = pname;
|
||||
rev = "${version}";
|
||||
rev = version;
|
||||
sha256 = "0dcl5a5jykgfmnfj42vl7kah9k26wg38l2g6yfh5pssmlf0nax33";
|
||||
};
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
src = fetchCrate {
|
||||
inherit version;
|
||||
crateName = "${pname}";
|
||||
crateName = pname;
|
||||
sha256 = "0p37kwkp153mkns4bh7k7gnksk6c31214wlw3faf42daav32mmgw";
|
||||
};
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ rustPlatform.buildRustPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "RustScan";
|
||||
repo = pname;
|
||||
rev = "${version}";
|
||||
rev = version;
|
||||
sha256 = "0dhy7b73ipsxsr7wlc3r5yy39i3cjrdszhsw9xwjj31692s3b605";
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user