djenrandom: init at 1.0

Add djenrandom as a package. djenrandom is a tool to generate random data.

Signed-off-by: Oliver Richter <richter-oliver@gmx.net>

+45
+43
pkgs/tools/misc/djenrandom/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + }: 5 + 6 + stdenv.mkDerivation rec { 7 + pname = "djenrandom"; 8 + version = "1.0"; 9 + 10 + src = fetchFromGitHub { 11 + owner = "dj-on-github"; 12 + repo = "djenrandom"; 13 + rev = "${version}"; 14 + hash = "sha256-r5UT8z8vvFZDffsl6CqBXuvBaZ/sl1WLxJi26CxkpAw="; 15 + }; 16 + 17 + preBuild = '' 18 + sed -i s/gcc/${stdenv.cc.targetPrefix}gcc/g Makefile 19 + '' 20 + + lib.optionalString (!stdenv.hostPlatform.isx86_64) '' 21 + sed -i s/-m64//g Makefile 22 + ''; 23 + 24 + installPhase = '' 25 + runHook preInstall 26 + install -D djenrandom $out/bin/djenrandom 27 + runHook postInstall 28 + ''; 29 + 30 + makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ]; 31 + 32 + meta = { 33 + homepage = "http://www.deadhat.com/"; 34 + description = '' 35 + A C program to generate random data using several random models, 36 + with parameterized non uniformities and flexible output formats 37 + ''; 38 + license = lib.licenses.gpl2Only; 39 + # djenrandom uses x86 specific instructions, therefore we can only compile for the x86 architechture 40 + platforms = lib.platforms.x86; 41 + maintainers = with lib.maintainers; [ orichter thillux ]; 42 + }; 43 + }
+2
pkgs/top-level/all-packages.nix
··· 39741 39741 39742 39742 terminal-parrot = callPackage ../applications/misc/terminal-parrot { }; 39743 39743 39744 + djenrandom = callPackage ../tools/misc/djenrandom { }; 39745 + 39744 39746 epsonscan2 = pkgs.libsForQt5.callPackage ../misc/drivers/epsonscan2 { }; 39745 39747 39746 39748 epson-alc1100 = callPackage ../misc/drivers/epson-alc1100 { };