mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 19:15:39 +00:00
d4681bf626
- fetchNuGet can fetch binaries from nuget servers - buildDotnetPackage can build .NET packages using mono/xbuild - Places nuget & paket as they would clash with nix - Patch project files because F# targets are expected to be found in the mono directory (and we know that's not going to happen on nix) - Find DLLs that were copied from buildInputs and replace by symlink for sharing - Export produced DLL via the pkg-config mechanism - Create wrappers for produced EXEs - Repackaged this new infrastructure: keepass, monodevelop - Newly packaged: ExtCore, UnionArgParser, FSharp.Data, Paket, and a bunch more.. This is a combination of 73 commits.
21 lines
830 B
Bash
21 lines
830 B
Bash
#!/bin/bash
|
|
|
|
# Some project files look for F# targets in $(FSharpTargetsPath)
|
|
# so it's a good idea to add something like this to your ~/.bash_profile:
|
|
|
|
# export FSharpTargetsPath=$(dirname $(which fsharpc))/../lib/mono/4.0/Microsoft.FSharp.Targets
|
|
|
|
# In build scripts, you would add somehting like this:
|
|
|
|
# export FSharpTargetsPath="${fsharp}/lib/mono/4.0/Microsoft.FSharp.Targets"
|
|
|
|
# However, some project files look for F# targets in the main Mono directory. When that happens
|
|
# patch the project files using this script so they will look in $(FSharpTargetsPath) instead.
|
|
|
|
echo "Patching F# targets in fsproj files..."
|
|
|
|
find -iname \*.fsproj -print -exec \
|
|
sed --in-place=.bak \
|
|
-e 's,<FSharpTargetsPath>\([^<]*\)</FSharpTargetsPath>,<FSharpTargetsPath Condition="Exists('\'\\1\'')">\1</FSharpTargetsPath>,'g \
|
|
{} \;
|