Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 59 lines 1.2 kB view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 pkg-config, 6 tailwindcss, 7 oniguruma, 8 stdenv, 9}: 10 11rustPlatform.buildRustPackage rec { 12 pname = "oranda"; 13 version = "0.6.5"; 14 15 src = fetchFromGitHub { 16 owner = "axodotdev"; 17 repo = "oranda"; 18 rev = "v${version}"; 19 hash = "sha256-FVd8NQVtzlZsDY40ZMJDdaX+6Q5jUxZHUq2v+kDFVOk="; 20 }; 21 22 cargoHash = "sha256-wPYgAbaoUVJoZT1nRCBsPziszkAubImZEKGrC2RAkEA="; 23 24 nativeBuildInputs = [ 25 pkg-config 26 tailwindcss 27 ]; 28 29 buildInputs = [ 30 oniguruma 31 ]; 32 33 # requires internet access 34 checkFlags = [ 35 "--skip=build" 36 "--skip=integration" 37 ]; 38 39 env = { 40 RUSTONIG_SYSTEM_LIBONIG = true; 41 ORANDA_USE_TAILWIND_BINARY = true; 42 } 43 // lib.optionalAttrs stdenv.hostPlatform.isDarwin { 44 # without this, tailwindcss fails with OpenSSL configuration error 45 OPENSSL_CONF = ""; 46 }; 47 48 meta = with lib; { 49 description = "Generate beautiful landing pages for your developer tools"; 50 homepage = "https://github.com/axodotdev/oranda"; 51 changelog = "https://github.com/axodotdev/oranda/blob/${src.rev}/CHANGELOG.md"; 52 license = with licenses; [ 53 asl20 54 mit 55 ]; 56 maintainers = with maintainers; [ figsoda ]; 57 mainProgram = "oranda"; 58 }; 59}