-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.nix
More file actions
43 lines (34 loc) · 868 Bytes
/
default.nix
File metadata and controls
43 lines (34 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ lib
, buildDotnetModule
, dotnetCorePackages
, makeWrapper
, openssh
, rsync
}:
buildDotnetModule {
meta.mainProgram = "osync";
pname = "osync";
projectFile = "osync.fsproj";
version = lib.fileContents ./version.txt;
dotnet-sdk = dotnetCorePackages.sdk_10_0;
dotnet-runtime = dotnetCorePackages.runtime_10_0;
selfContainedBuild = true;
env.DOTNET_SYSTEM_GLOBALIZATION_INVARIANT = 1;
makeWrapperArgs = [ "--set" "DOTNET_SYSTEM_GLOBALIZATION_INVARIANT" "1" ];
src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.unions [
./src
./osync.fsproj
./nuget.config
./version.txt
];
};
nugetDeps = ./nuget.json;
nativeBuildInputs = [ makeWrapper ];
postFixup = ''
wrapProgram $out/bin/osync \
--prefix PATH : ${lib.makeBinPath [ openssh rsync ]}
'';
executables = [ "osync" ];
}