1 { lib, stdenv, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-QWWqC10bENemG5FYEog87tT7IxDaBJUDqu6j/sO3sYE=";
14 buildFlags = lib.optional stdenv.isDarwin "LDFLAGS= LDFLAGS_EXTRA= CFLAGS_EXTRA=";
16 installFlags = [ "PREFIX=$(out)" ];
17 installTargets = lib.optional stdenv.isDarwin "install-osx";
22 description = "Shared library that implements scrypt() functionality";
23 homepage = "https://lolware.net/2014/04/29/libscrypt.html";
24 license = licenses.bsd2;
25 maintainers = with maintainers; [ davidak ];
26 platforms = platforms.unix;