tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
libxcrypt: use tarball src, prune dependencies
Martin Weinelt
3 years ago
7c29dcb8
ff30c899
+11
-22
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
libxcrypt
default.nix
+11
-22
pkgs/development/libraries/libxcrypt/default.nix
···
1
-
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, pkg-config, perl, fetchpatch }:
2
3
stdenv.mkDerivation rec {
4
pname = "libxcrypt";
5
version = "4.4.28";
6
7
-
src = fetchFromGitHub {
8
-
owner = "besser82";
9
-
repo = "libxcrypt";
10
-
rev = "v${version}";
11
-
sha256 = "sha256-Ohf+RCOXnoCxAFnXXV9e2TCqpfZziQl+FGJTGDSQTF0=";
12
};
13
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
-
})
22
];
23
24
-
preConfigure = ''
25
-
patchShebangs autogen.sh
26
-
./autogen.sh
27
-
'';
28
-
29
-
configureFlags = [
30
-
"--disable-werror"
31
];
32
33
-
nativeBuildInputs = [ autoconf automake libtool pkg-config perl ];
34
35
doCheck = true;
36
···
1
+
{ lib, stdenv, fetchurl, perl }:
2
3
stdenv.mkDerivation rec {
4
pname = "libxcrypt";
5
version = "4.4.28";
6
7
+
src = fetchurl {
8
+
url = "https://github.com/besser82/libxcrypt/releases/download/v${version}/libxcrypt-${version}.tar.xz";
9
+
sha256 = "sha256-npNoEfn60R28ozyhm9l8VcUus8oVkB8nreBGzHnmnoc=";
0
0
10
};
11
12
+
configureFlags = [
13
+
"--enable-hashes=all"
14
+
"--enable-obsolete-api=glibc"
15
+
"--disable-failure-tokens"
0
0
0
0
16
];
17
18
+
nativeBuildInputs = [
19
+
perl
0
0
0
0
0
20
];
21
22
+
enableParallelBuilding = true;
23
24
doCheck = true;
25