-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.nix
52 lines (46 loc) · 951 Bytes
/
package.nix
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
44
45
46
47
48
49
50
51
52
{
stdenv,
lib,
darwin,
xorg,
makeWrapper,
buildGoModule,
useGolangDesign ? false,
...
}:
buildGoModule {
pname = "muscat";
version = "2.2.4";
vendorHash = "sha256-CLdVbJ0ZN2aCx3mVi4j9sOnKFdSsNl6Op1vsVNJZJFY=";
src = ./.;
tags =
if useGolangDesign
then ["golangdesign"]
else [];
buildInputs =
if stdenv.isDarwin
then [
darwin.apple_sdk.frameworks.Cocoa
]
else if useGolangDesign
then [
xorg.libX11
]
else [];
nativeBuildInputs =
if (stdenv.isLinux && useGolangDesign)
then [makeWrapper]
else [];
postFixup =
if (stdenv.isLinux && useGolangDesign)
then ''
wrapProgram $out/bin/muscat \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [xorg.libX11]}
''
else "";
meta = with lib; {
description = "remote code development utils";
homepage = "https://github.com/Warashi/muscat";
license = licenses.mit;
};
}