tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
bossa: migrate to wxGTK32
Weijia Wang
2 years ago
ca33e8f4
b29350a3
+29
-8
2 changed files
expand all
collapse all
unified
split
pkgs
development
embedded
bossa
default.nix
top-level
all-packages.nix
+28
-5
pkgs/development/embedded/bossa/default.nix
···
1
-
{ lib, stdenv, fetchFromGitHub, wxGTK, libX11, readline }:
0
0
0
0
0
0
0
2
3
let
4
# BOSSA needs a "bin2c" program to embed images.
···
24
sha256 = "sha256-8M3MU/+Y1L6SaQ1yoC9Z27A/gGruZdopLnL1z7h7YJw=";
25
};
26
0
0
0
0
0
27
nativeBuildInputs = [ bin2c ];
28
-
buildInputs = [ wxGTK libX11 readline ];
0
0
0
0
0
0
29
30
-
# Explicitly specify targets so they don't get stripped.
31
-
makeFlags = [ "bin/bossac" "bin/bossash" "bin/bossa" ];
0
0
0
0
0
32
env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
33
34
installPhase = ''
···
47
'';
48
homepage = "http://www.shumatech.com/web/products/bossa";
49
license = licenses.bsd3;
50
-
platforms = platforms.linux;
51
};
52
}
···
1
+
{ lib
2
+
, stdenv
3
+
, fetchFromGitHub
4
+
, wxGTK32
5
+
, libX11
6
+
, readline
7
+
, darwin
8
+
}:
9
10
let
11
# BOSSA needs a "bin2c" program to embed images.
···
31
sha256 = "sha256-8M3MU/+Y1L6SaQ1yoC9Z27A/gGruZdopLnL1z7h7YJw=";
32
};
33
34
+
postPatch = ''
35
+
substituteInPlace Makefile \
36
+
--replace "-arch x86_64" ""
37
+
'';
38
+
39
nativeBuildInputs = [ bin2c ];
40
+
buildInputs = [
41
+
wxGTK32
42
+
libX11
43
+
readline
44
+
] ++ lib.optionals stdenv.isDarwin [
45
+
darwin.apple_sdk.frameworks.Cocoa
46
+
];
47
48
+
makeFlags = [
49
+
"WXVERSION=3.2"
50
+
# Explicitly specify targets so they don't get stripped.
51
+
"bin/bossac"
52
+
"bin/bossash"
53
+
"bin/bossa"
54
+
];
55
env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
56
57
installPhase = ''
···
70
'';
71
homepage = "http://www.shumatech.com/web/products/bossa";
72
license = licenses.bsd3;
73
+
platforms = platforms.unix;
74
};
75
}
+1
-3
pkgs/top-level/all-packages.nix
···
17531
17532
bloop = callPackage ../development/tools/build-managers/bloop { };
17533
17534
-
bossa = callPackage ../development/embedded/bossa {
17535
-
wxGTK = wxGTK30;
17536
-
};
17537
17538
bossa-arduino = callPackage ../development/embedded/bossa/arduino.nix { };
17539
···
17531
17532
bloop = callPackage ../development/tools/build-managers/bloop { };
17533
17534
+
bossa = callPackage ../development/embedded/bossa { };
0
0
17535
17536
bossa-arduino = callPackage ../development/embedded/bossa/arduino.nix { };
17537