2020-05-26 06:51:06 +00:00
|
|
|
{ pkgs ? import <nixpkgs> {} }:
|
|
|
|
|
2020-12-30 06:30:41 +00:00
|
|
|
let nostrip = pkg: pkgs.enableDebugging (pkg.overrideAttrs(old: {
|
|
|
|
dontStrip = true;
|
|
|
|
doCheck = false;
|
|
|
|
NIX_CFLAGS_COMPILE = (old.NIX_CFLAGS_COMPILE or "") + " -g";
|
|
|
|
}));
|
2020-11-05 19:08:30 +00:00
|
|
|
|
2020-12-30 06:30:41 +00:00
|
|
|
libhandy = pkgs.libhandy.overrideAttrs(old: {
|
|
|
|
name = "libhandy-1.0.1";
|
|
|
|
src = builtins.fetchGit {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/libhandy.git";
|
|
|
|
rev = "5cee0927b8b39dea1b2a62ec6d19169f73ba06c6";
|
|
|
|
};
|
|
|
|
patches = [];
|
|
|
|
|
|
|
|
buildInputs = old.buildInputs ++ (with pkgs; [
|
|
|
|
(nostrip gnome3.librsvg)
|
|
|
|
(nostrip gdk-pixbuf)
|
|
|
|
]);
|
|
|
|
});
|
2020-11-05 19:08:30 +00:00
|
|
|
|
|
|
|
in pkgs.stdenv.mkDerivation rec {
|
2020-05-26 06:51:06 +00:00
|
|
|
name = "cchat-gtk";
|
|
|
|
version = "0.0.2";
|
|
|
|
|
2020-12-30 06:30:41 +00:00
|
|
|
buildInputs = [
|
2021-01-07 04:10:53 +00:00
|
|
|
libhandy
|
|
|
|
pkgs.gnome3.gspell
|
|
|
|
pkgs.gnome3.glib
|
|
|
|
pkgs.gnome3.gtk
|
2020-12-30 06:30:41 +00:00
|
|
|
];
|
2020-05-26 06:51:06 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
|
|
pkgconfig go
|
|
|
|
];
|
2020-12-30 06:30:41 +00:00
|
|
|
|
|
|
|
# Debug flags.
|
|
|
|
CGO_CFLAGS = "-g";
|
|
|
|
CGO_CXXFLAGS = "-g";
|
2020-05-26 06:51:06 +00:00
|
|
|
}
|