summary refs log tree commit diff
path: root/pkgs/development/libraries/libxcrypt
diff options
context:
space:
mode:
authorMisha Gusarov <dottedmag@dottedmag.net>2021-02-28 12:44:53 +0000
committerMisha Gusarov <dottedmag@dottedmag.net>2021-02-28 12:44:53 +0000
commit4d6786891290d20fcc824366e01af25621584294 (patch)
tree00dcad00c2c4212605b101153172fc0ec41fc7df /pkgs/development/libraries/libxcrypt
parenta44728d4590a3f28779a8fa74d9a4f51174a5887 (diff)
downloadnixpkgs-4d6786891290d20fcc824366e01af25621584294.tar
nixpkgs-4d6786891290d20fcc824366e01af25621584294.tar.gz
nixpkgs-4d6786891290d20fcc824366e01af25621584294.tar.bz2
nixpkgs-4d6786891290d20fcc824366e01af25621584294.tar.lz
nixpkgs-4d6786891290d20fcc824366e01af25621584294.tar.xz
nixpkgs-4d6786891290d20fcc824366e01af25621584294.tar.zst
nixpkgs-4d6786891290d20fcc824366e01af25621584294.zip
libxcrypt: init at 4.4.18
Closes #114632
Related to #112371
Diffstat (limited to 'pkgs/development/libraries/libxcrypt')
-rw-r--r--pkgs/development/libraries/libxcrypt/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libxcrypt/default.nix b/pkgs/development/libraries/libxcrypt/default.nix
new file mode 100644
index 00000000000..4df5bde2287
--- /dev/null
+++ b/pkgs/development/libraries/libxcrypt/default.nix
@@ -0,0 +1,30 @@
+{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, pkg-config, perl }:
+
+stdenv.mkDerivation rec {
+  pname = "libxcrypt";
+  version = "4.4.18";
+
+  src = fetchFromGitHub {
+    owner = "besser82";
+    repo = "libxcrypt";
+    rev = "v${version}";
+    sha256 = "4015bf1b3a2aab31da5a544424be36c1a0f0ffc1eaa219c0e7b048e4cdcbbfe1";
+  };
+
+  preConfigure = ''
+    patchShebangs autogen.sh
+    ./autogen.sh
+  '';
+
+  nativeBuildInputs = [ autoconf automake libtool pkg-config perl ];
+
+  doCheck = true;
+
+  meta = with lib; {
+    description = "Extended crypt library for descrypt, md5crypt, bcrypt, and others";
+    homepage = "https://github.com/besser82/libxcrypt/";
+    platforms = platforms.all;
+    maintainers = with maintainers; [ dottedmag ];
+    license = licenses.lgpl21Plus;
+  };
+}