aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/libraries/libxcrypt/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/libraries/libxcrypt/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/libraries/libxcrypt/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/libraries/libxcrypt/default.nix b/infra/libkookie/nixpkgs/pkgs/development/libraries/libxcrypt/default.nix
new file mode 100644
index 000000000000..4df5bde22871
--- /dev/null
+++ b/infra/libkookie/nixpkgs/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;
+ };
+}