mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +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.
24 lines
556 B
Bash
24 lines
556 B
Bash
#!/usr/bin/env bash
|
|
|
|
targetDir="$1"
|
|
dllFullPath="$2"
|
|
|
|
dllVersion="$(monodis --assembly "$dllFullPath" | grep ^Version: | cut -f 2 -d : | xargs)"
|
|
[ -z "$dllVersion" ] && echo "Defaulting dllVersion to 0.0.0" && dllVersion="0.0.0"
|
|
dllFileName="$(basename $dllFullPath)"
|
|
dllRootName="$(basename -s .dll $dllFileName)"
|
|
targetPcFile="$targetDir"/"$dllRootName".pc
|
|
|
|
mkdir -p "$targetDir"
|
|
|
|
cat > $targetPcFile << EOF
|
|
Libraries=$dllFullPath
|
|
|
|
Name: $dllRootName
|
|
Description: $dllRootName
|
|
Version: $dllVersion
|
|
Libs: -r:$dllFileName
|
|
EOF
|
|
|
|
echo "Created $targetPcFile"
|