nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 40 lines 761 B view raw
1{ 2 lib, 3 stdenv, 4 orthanc, 5 gtest, 6 icu, 7 zlib, 8}: 9 10stdenv.mkDerivation (finalAttrs: { 11 pname = "orthanc-framework"; 12 inherit (orthanc) 13 src 14 version 15 nativeBuildInputs 16 strictDeps 17 cmakeFlags 18 ; 19 20 sourceRoot = "${finalAttrs.src.name}/OrthancFramework/SharedLibrary"; 21 22 buildInputs = orthanc.buildInputs ++ [ 23 icu 24 ]; 25 26 NIX_LDFLAGS = lib.strings.concatStringsSep " " [ 27 "-L${lib.getLib zlib}" 28 "-lz" 29 "-L${lib.getLib gtest}" 30 "-lgtest" 31 ]; 32 33 meta = { 34 description = "SDK for building Orthanc plugins and related applications"; 35 homepage = "https://www.orthanc-server.com/"; 36 license = lib.licenses.gpl3Plus; 37 maintainers = with lib.maintainers; [ drupol ]; 38 platforms = lib.platforms.linux; 39 }; 40})