mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-30 20:09:50 +03:00
Discard changes to flake.nix
This commit is contained in:
parent
1c28117beb
commit
d61b86fedb
70
flake.nix
70
flake.nix
@ -1,70 +0,0 @@
|
||||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
rust-overlay = {
|
||||
url = "github:oxalica/rust-overlay";
|
||||
inputs = {
|
||||
nixpkgs.follows = "nixpkgs";
|
||||
flake-utils.follows = "flake-utils";
|
||||
};
|
||||
};
|
||||
};
|
||||
outputs = { self, nixpkgs, flake-utils, rust-overlay }:
|
||||
flake-utils.lib.eachDefaultSystem
|
||||
(system:
|
||||
let
|
||||
overlays = [ (import rust-overlay) ];
|
||||
pkgs = import nixpkgs {
|
||||
inherit system overlays;
|
||||
};
|
||||
|
||||
rustToolchain = pkgs.pkgsBuildHost.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
|
||||
|
||||
common = with pkgs; [
|
||||
gtk3
|
||||
glib
|
||||
glib-networking
|
||||
dbus
|
||||
openssl_3
|
||||
librsvg
|
||||
gettext
|
||||
libiconv
|
||||
libsoup_3
|
||||
webkitgtk
|
||||
nodejs_20
|
||||
nodePackages.pnpm
|
||||
];
|
||||
|
||||
# runtime Deps
|
||||
libraries = with pkgs;[
|
||||
cairo
|
||||
pango
|
||||
harfbuzz
|
||||
gdk-pixbuf
|
||||
] ++ common;
|
||||
|
||||
# compile-time deps
|
||||
packages = with pkgs; [
|
||||
curl
|
||||
wget
|
||||
pkg-config
|
||||
rustToolchain
|
||||
] ++ common;
|
||||
in
|
||||
with pkgs;
|
||||
{
|
||||
devShells.default = mkShell {
|
||||
nativeBuildInputs = packages;
|
||||
buildInputs = libraries;
|
||||
|
||||
shellHook =
|
||||
''
|
||||
export LD_LIBRARY_PATH=${pkgs.lib.makeLibraryPath libraries}:$LD_LIBRARY_PATH
|
||||
export XDG_DATA_DIRS=${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}:${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}:$XDG_DATA_DIRS
|
||||
export GIO_MODULE_DIR="${pkgs.glib-networking}/lib/gio/modules/"
|
||||
'';
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
Loading…
Reference in New Issue
Block a user