debootstrap: fetch from gitlab

main
ajs124 2 years ago
parent 35619ce1e5
commit 646c9c5acd
  1. 13
      pkgs/tools/misc/debootstrap/default.nix

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, dpkg, gawk, perl, wget, coreutils, util-linux
{ lib, stdenv, fetchFromGitLab, dpkg, gawk, perl, wget, coreutils, util-linux
, gnugrep, gnupg1, gnutar, gnused, gzip, makeWrapper }:
# USAGE like this: debootstrap sid /tmp/target-chroot-directory
# There is also cdebootstrap now. Is that easier to maintain?
@ -18,11 +18,12 @@ in stdenv.mkDerivation rec {
pname = "debootstrap";
version = "1.0.126";
src = fetchurl {
# git clone git://git.debian.org/d-i/debootstrap.git
# I'd like to use the source. However it's lacking the lanny script ? (still true?)
url = "mirror://debian/pool/main/d/${pname}/${pname}_${version}.tar.gz";
sha256 = "sha256-vEjhxQDDO+1QvQDSAfM408ktbA3LHyAsO8AO8B+Wxhg=";
src = fetchFromGitLab {
domain = "salsa.debian.org";
owner = "installer-team";
repo = pname;
rev = version;
sha256 = "0hfx6k86kby4xf0xqskpllq00g159j4khh66hfi6dhcdb91dgyd7";
};
nativeBuildInputs = [ makeWrapper ];

Loading…
Cancel
Save