Build the overrides that make kifu-gtk successfully build
This commit is contained in:
parent
b790d25334
commit
e70a191e34
46
flake.nix
46
flake.nix
|
@ -45,41 +45,33 @@
|
||||||
packages."x86_64-linux" =
|
packages."x86_64-linux" =
|
||||||
let
|
let
|
||||||
pkgs = import nixpkgs { system = "x86_64-linux"; };
|
pkgs = import nixpkgs { system = "x86_64-linux"; };
|
||||||
|
standardOverride = attrs: {
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkgs.pkg-config
|
||||||
|
pkgs.gtk4
|
||||||
|
];
|
||||||
|
verbose = true;
|
||||||
|
};
|
||||||
customBuildInfo = pkgs: pkgs.buildRustCrate.override {
|
customBuildInfo = pkgs: pkgs.buildRustCrate.override {
|
||||||
defaultCrateOverrides = pkgs.defaultCrateOverrides // {
|
defaultCrateOverrides = pkgs.defaultCrateOverrides // {
|
||||||
gobject-sys = attrs: {
|
cairo-sys-rs = standardOverride;
|
||||||
nativeBuildInputs = [
|
graphene-sys = standardOverride;
|
||||||
pkgs.pkg-config
|
gobject-sys = standardOverride;
|
||||||
pkgs.wrapGAppsHook4
|
pango-sys = standardOverride;
|
||||||
pkgs.gtk4
|
gio-sys = standardOverride;
|
||||||
pkgs.glib
|
gdk-pixbuf-sys = standardOverride;
|
||||||
pkgs.clang
|
gdk4-sys = standardOverride;
|
||||||
];
|
gsk4-sys = standardOverride;
|
||||||
};
|
gtk4-sys = standardOverride;
|
||||||
graphene-sys = attrs: {
|
|
||||||
nativeBuildInputs = [
|
|
||||||
pkgs.pkg-config
|
|
||||||
pkgs.wrapGAppsHook4
|
|
||||||
pkgs.gtk4
|
|
||||||
pkgs.glib
|
|
||||||
pkgs.clang
|
|
||||||
];
|
|
||||||
};
|
|
||||||
cairo-sys = attrs: {
|
|
||||||
nativeBuildInputs = [
|
|
||||||
pkgs.pkg-config
|
|
||||||
pkgs.wrapGAppsHook4
|
|
||||||
pkgs.gtk4
|
|
||||||
pkgs.glib
|
|
||||||
pkgs.clang
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
# gobject-sys = pkgs.buildRustCrate cargo.internal.crates.gobject-sys;
|
||||||
kifu-gtk = (import ./kifu/kifu-gtk/Cargo.nix {
|
kifu-gtk = (import ./kifu/kifu-gtk/Cargo.nix {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
buildRustCrateForPkgs = customBuildInfo;
|
buildRustCrateForPkgs = customBuildInfo;
|
||||||
|
rootFeatures = [ "screenplay" ];
|
||||||
|
release = false;
|
||||||
}).rootCrate.build;
|
}).rootCrate.build;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
[package]
|
||||||
|
name = "kifu-test"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
[dependencies]
|
|
@ -0,0 +1,3 @@
|
||||||
|
fn main() {
|
||||||
|
println!("Hello, world!");
|
||||||
|
}
|
Loading…
Reference in New Issue