tinygettext.nix 591 B

12345678910111213141516171819202122232425262728293031323334353637
  1. { stdenv
  2. , lib
  3. , libiconv
  4. , cmake
  5. , tinycmmc
  6. }:
  7. stdenv.mkDerivation {
  8. pname = "tinygettext";
  9. version = "0.2.0";
  10. src = lib.cleanSource ./.;
  11. postFixup = ""
  12. + (lib.optionalString stdenv.targetPlatform.isWindows ''
  13. # This is rather ugly, but functional. Nix has a win-dll-link.sh
  14. # for this, but that's currently broken:
  15. # https://github.com/NixOS/nixpkgs/issues/38451
  16. mkdir -p $out/bin/
  17. ln -sv ${libiconv}/bin/*.dll $out/bin/
  18. '');
  19. nativeBuildInputs = [
  20. cmake
  21. ];
  22. buildInputs = [
  23. tinycmmc
  24. ];
  25. propagatedBuildInputs = [
  26. libiconv
  27. ];
  28. }