1
0
Fork 0
mirror of https://github.com/diamondburned/cchat-gtk.git synced 2024-10-29 18:44:18 +00:00
cchat-gtk/shell.nix

42 lines
840 B
Nix
Raw Normal View History

2020-05-26 06:51:06 +00:00
{ pkgs ? import <nixpkgs> {} }:
let nostrip = pkg: pkgs.enableDebugging (pkg.overrideAttrs(old: {
dontStrip = true;
doCheck = false;
NIX_CFLAGS_COMPILE = (old.NIX_CFLAGS_COMPILE or "") + " -g";
}));
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)
]);
});
in pkgs.stdenv.mkDerivation rec {
2020-05-26 06:51:06 +00:00
name = "cchat-gtk";
version = "0.0.2";
buildInputs = [
2021-01-07 04:10:53 +00:00
libhandy
pkgs.gnome3.gspell
pkgs.gnome3.glib
pkgs.gnome3.gtk
];
2020-05-26 06:51:06 +00:00
nativeBuildInputs = with pkgs; [
pkgconfig go
];
# Debug flags.
CGO_CFLAGS = "-g";
CGO_CXXFLAGS = "-g";
2020-05-26 06:51:06 +00:00
}