nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 62 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 curl, 6 python3, 7 perl, 8 trurl, 9 versionCheckHook, 10}: 11 12stdenv.mkDerivation rec { 13 pname = "trurl"; 14 version = "0.16.1"; 15 16 src = fetchFromGitHub { 17 owner = "curl"; 18 repo = "trurl"; 19 rev = "trurl-${version}"; 20 hash = "sha256-VCMT4WgZ6LG7yiKaRy7KTgTkbACVXb4rw62lWnVAuP0="; 21 }; 22 23 postPatch = '' 24 patchShebangs scripts/* 25 ''; 26 27 outputs = [ 28 "out" 29 "dev" 30 "man" 31 ]; 32 separateDebugInfo = stdenv.hostPlatform.isLinux; 33 34 enableParallelBuilding = true; 35 36 nativeBuildInputs = [ 37 curl 38 perl 39 ]; 40 buildInputs = [ curl ]; 41 makeFlags = [ "PREFIX=$(out)" ]; 42 43 strictDeps = true; 44 45 doCheck = true; 46 nativeCheckInputs = [ python3 ]; 47 checkTarget = "test"; 48 49 doInstallCheck = true; 50 nativeInstallCheckInputs = [ versionCheckHook ]; 51 versionCheckProgramArg = "--version"; 52 53 meta = { 54 description = "Command line tool for URL parsing and manipulation"; 55 homepage = "https://curl.se/trurl"; 56 changelog = "https://github.com/curl/trurl/releases/tag/trurl-${version}"; 57 license = lib.licenses.curl; 58 maintainers = with lib.maintainers; [ christoph-heiss ]; 59 platforms = lib.platforms.all; 60 mainProgram = "trurl"; 61 }; 62}