Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0f3bf7de698d
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 79b3d1b33d3d
Choose a head ref
  • 4 commits
  • 1 file changed
  • 2 contributors

Commits on Mar 4, 2019

  1. cracklib: 2.9.6 -> 2.9.7

    https://github.com/cracklib/cracklib/releases/tag/v2.9.7
    
    I haven't looked into the details but notes mention:
    
    > apply patch to fix CVE-2016-6318 Stack-based buffer overflow when parsing large GECOS field
    > fix a buffer overflow processing long words
    dtzWill committed Mar 4, 2019
    Copy the full SHA
    a3eccfd View commit details
  2. Copy the full SHA
    8867dfd View commit details
  3. Copy the full SHA
    66dae3b View commit details

Commits on Apr 5, 2019

  1. Merge pull request #56805 from dtzWill/update/cracklib-2.9.7

    cracklib: 2.9.6 -> 2.9.7, generate dictionary from wordlists
    jtojnar authored Apr 5, 2019
    Copy the full SHA
    79b3d1b View commit details
Showing with 24 additions and 4 deletions.
  1. +24 −4 pkgs/development/libraries/cracklib/default.nix
28 changes: 24 additions & 4 deletions pkgs/development/libraries/cracklib/default.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,35 @@
{ stdenv, fetchurl, zlib, gettext }:
let version = "2.9.7"; in
{ stdenv, fetchurl, zlib, gettext
, wordlists ? [ (fetchurl {
url = "https://github.com/cracklib/cracklib/releases/download/v${version}/cracklib-words-${version}.gz";
sha256 = "12fk8w06q628v754l357cf8kfjna98wj09qybpqr892az3x4a33z";
}) ]
}:

stdenv.mkDerivation rec {
name = "cracklib-2.9.6";
pname = "cracklib";
inherit version;

src = fetchurl {
url = "https://github.com/cracklib/cracklib/releases/download/${name}/${name}.tar.gz";
sha256 = "0hrkb0prf7n92w6rxgq0ilzkk6rkhpys2cfqkrbzswp27na7dkqp";
url = "https://github.com/${pname}/${pname}/releases/download/v${version}/${pname}-${version}.tar.bz2";
sha256 = "1rimpjsdnmw8f5b7k558cic41p2qy2n2yrlqp5vh7mp4162hk0py";
};

buildInputs = [ zlib gettext ];

postPatch = ''
chmod +x util/cracklib-format
patchShebangs util
ln -vs ${toString wordlists} dicts/
'';

postInstall = ''
make dict
'';
doInstallCheck = true;
installCheckTarget = "test";

meta = with stdenv.lib; {
homepage = https://github.com/cracklib/cracklib;
description = "A library for checking the strength of passwords";