neopg: use fetchFromGitHub instead of fetchgit
commit15e23e5d92c74658a5e5ee0c2cbd6b5530319709
authorschneefux <schneefux+commit@schneefux.xyz>
dateMon 8 Oct 2018, 14:04 (8 years ago)
parent953f495
pkgs/tools/security/neopg/default.nix+5−4
@@ -1,5 +1,5 @@
11{ stdenv
2−, fetchgit
2+, fetchFromGitHub
33, cmake
44, sqlite
55, botan2
@@ -14,11 +14,12 @@ stdenv.mkDerivation rec {
1414 name = "neopg-${version}";
1515 version = "0.0.4";
1616
17− # no fetchFromGitHub, as repo contains submodules
18− src = fetchgit {
19− url = "https://github.com/das-labor/neopg.git";
17+ src = fetchFromGitHub {
18+ owner = "das-labor";
19+ repo = "neopg";
2020 rev = "v${version}";
2121 sha256 = "0hhkl326ff6f76k8pwggpzmivbm13fz497nlyy6ybn5bmi9xfblm";
22+ fetchSubmodules = true;
2223 };
2324
2425 nativeBuildInputs = [ pkgconfig ];