treewide: simplify rev/repo arguments in src

+ use fetchFromGithub where possible
This commit is contained in:
Pavol Rusnak
2020-11-01 23:02:24 -08:00
committed by Jonathan Ringer
parent c6afa8820b
commit 2c931312ce
86 changed files with 148 additions and 134 deletions
+5 -4
View File
@@ -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";
};
+1 -1
View File
@@ -10,7 +10,7 @@ let
src = fetchFromGitHub {
owner = "google";
repo = pname;
rev = "${version}";
rev = version;
sha256 = "0dcl5a5jykgfmnfj42vl7kah9k26wg38l2g6yfh5pssmlf0nax33";
};
+1 -1
View File
@@ -24,7 +24,7 @@ rustPlatform.buildRustPackage rec {
src = fetchCrate {
inherit version;
crateName = "${pname}";
crateName = pname;
sha256 = "0p37kwkp153mkns4bh7k7gnksk6c31214wlw3faf42daav32mmgw";
};
+1 -1
View File
@@ -7,7 +7,7 @@ rustPlatform.buildRustPackage rec {
src = fetchFromGitHub {
owner = "RustScan";
repo = pname;
rev = "${version}";
rev = version;
sha256 = "0dhy7b73ipsxsr7wlc3r5yy39i3cjrdszhsw9xwjj31692s3b605";
};