12345678910111213141516171819202122232425262728293031323334353637 |
- { stdenv
- , lib
- , libiconv
- , cmake
- , tinycmmc
- }:
- stdenv.mkDerivation {
- pname = "tinygettext";
- version = "0.2.0";
- src = lib.cleanSource ./.;
- postFixup = ""
- + (lib.optionalString stdenv.targetPlatform.isWindows ''
- # This is rather ugly, but functional. Nix has a win-dll-link.sh
- # for this, but that's currently broken:
- # https://github.com/NixOS/nixpkgs/issues/38451
- mkdir -p $out/bin/
- ln -sv ${libiconv}/bin/*.dll $out/bin/
- '');
- nativeBuildInputs = [
- cmake
- ];
- buildInputs = [
- tinycmmc
- ];
- propagatedBuildInputs = [
- libiconv
- ];
- }
|