Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 50 lines 987 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 stdenv, 5 cmake, 6 ninja, 7 pkg-config, 8}: 9 10stdenv.mkDerivation (finalAttrs: { 11 pname = "wtf"; 12 version = "0.5.7"; 13 14 src = fetchFromGitHub { 15 owner = "0vercl0k"; 16 repo = "wtf"; 17 tag = "v${finalAttrs.version}"; 18 hash = "sha256-lfPx9RQEW457VQkDbvu/D9EFZrdNLz2ToQ9dfa7+tzY="; 19 }; 20 21 nativeBuildInputs = [ 22 cmake 23 ninja 24 pkg-config 25 ]; 26 27 sourceRoot = "source/src"; 28 29 cmakeFlags = [ 30 (lib.cmakeFeature "CMAKE_BUILD_TYPE" "Release") 31 ]; 32 33 installPhase = '' 34 runHook preInstall 35 36 install -Dm755 wtf $out/bin/wtf 37 38 runHook postInstall 39 ''; 40 41 meta = { 42 description = "Cross-platform snapshot-based fuzzer"; 43 homepage = "https://github.com/0vercl0k/wtf"; 44 changelog = "https://github.com/0vercl0k/wtf/releases/tag/v${finalAttrs.version}"; 45 license = lib.licenses.mit; 46 platforms = with lib.platforms; [ "x86_64-linux" ]; 47 maintainers = with lib.maintainers; [ mikehorn ]; 48 mainProgram = "wtf"; 49 }; 50})