lol

libxcrypt: use tarball src, prune dependencies

+11 -22
+11 -22
pkgs/development/libraries/libxcrypt/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, pkg-config, perl, fetchpatch }: 1 + { lib, stdenv, fetchurl, perl }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "libxcrypt"; 5 5 version = "4.4.28"; 6 6 7 - src = fetchFromGitHub { 8 - owner = "besser82"; 9 - repo = "libxcrypt"; 10 - rev = "v${version}"; 11 - sha256 = "sha256-Ohf+RCOXnoCxAFnXXV9e2TCqpfZziQl+FGJTGDSQTF0="; 7 + src = fetchurl { 8 + url = "https://github.com/besser82/libxcrypt/releases/download/v${version}/libxcrypt-${version}.tar.xz"; 9 + sha256 = "sha256-npNoEfn60R28ozyhm9l8VcUus8oVkB8nreBGzHnmnoc="; 12 10 }; 13 11 14 - patches = [ 15 - # Fix for tests on musl is being upstreamed: 16 - # https://github.com/besser82/libxcrypt/pull/157 17 - # Applied in all environments to prevent patchrot 18 - (fetchpatch { 19 - url = "https://github.com/besser82/libxcrypt/commit/a4228faa0b96986abc076125cf97d352a063d92f.patch"; 20 - sha256 = "sha256-iGNz8eer6OkA0yR74WisE6GbFTYyXKw7koXl/R7DhVE="; 21 - }) 12 + configureFlags = [ 13 + "--enable-hashes=all" 14 + "--enable-obsolete-api=glibc" 15 + "--disable-failure-tokens" 22 16 ]; 23 17 24 - preConfigure = '' 25 - patchShebangs autogen.sh 26 - ./autogen.sh 27 - ''; 28 - 29 - configureFlags = [ 30 - "--disable-werror" 18 + nativeBuildInputs = [ 19 + perl 31 20 ]; 32 21 33 - nativeBuildInputs = [ autoconf automake libtool pkg-config perl ]; 22 + enableParallelBuilding = true; 34 23 35 24 doCheck = true; 36 25