mirror of
https://github.com/zoriya/astal.git
synced 2026-06-09 04:24:53 +00:00
move libastal to /core
starting point of the monorepo
This commit is contained in:
@@ -2,7 +2,6 @@ version_split = meson.project_version().split('.')
|
||||
api_version = version_split[0] + '.' + version_split[1]
|
||||
gir = 'Astal-' + api_version + '.gir'
|
||||
typelib = 'Astal-' + api_version + '.typelib'
|
||||
so = 'libastal.so.' + meson.project_version()
|
||||
|
||||
config = configure_file(
|
||||
input: 'config.vala.in',
|
||||
@@ -0,0 +1 @@
|
||||
0.1.0
|
||||
@@ -9,51 +9,45 @@
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs {inherit system;};
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
wrapGAppsHook
|
||||
gobject-introspection
|
||||
meson
|
||||
pkg-config
|
||||
ninja
|
||||
vala
|
||||
];
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
glib
|
||||
gtk3
|
||||
gtk-layer-shell
|
||||
];
|
||||
lib = name: src: inputs:
|
||||
pkgs.stdenv.mkDerivation {
|
||||
nativeBuildInputs = with pkgs; [
|
||||
wrapGAppsHook
|
||||
gobject-introspection
|
||||
meson
|
||||
pkg-config
|
||||
ninja
|
||||
vala
|
||||
];
|
||||
buildInputs = [pkgs.glib] ++ inputs;
|
||||
pname = name;
|
||||
version = version;
|
||||
src = src;
|
||||
outputs = ["out" "dev"];
|
||||
};
|
||||
in {
|
||||
packages.${system} = rec {
|
||||
default = astal;
|
||||
astal = pkgs.stdenv.mkDerivation {
|
||||
inherit nativeBuildInputs buildInputs;
|
||||
pname = "astal";
|
||||
version = version;
|
||||
src = ./.;
|
||||
outputs = ["out" "dev"];
|
||||
};
|
||||
astal = with pkgs; lib "astal" ./core [gtk3 gtk-layer-shell];
|
||||
};
|
||||
|
||||
devShells.${system} = let
|
||||
inputs = with pkgs;
|
||||
buildInputs
|
||||
++ [
|
||||
(lua.withPackages (ps: [ps.lgi]))
|
||||
gjs
|
||||
];
|
||||
inputs = with pkgs; [
|
||||
wrapGAppsHook
|
||||
gobject-introspection
|
||||
meson
|
||||
pkg-config
|
||||
ninja
|
||||
vala
|
||||
(lua.withPackages (ps: [ps.lgi]))
|
||||
gjs
|
||||
];
|
||||
in {
|
||||
default = pkgs.mkShell {
|
||||
inherit nativeBuildInputs;
|
||||
buildInputs = inputs;
|
||||
inherit inputs;
|
||||
};
|
||||
astal = pkgs.mkShell {
|
||||
inherit nativeBuildInputs;
|
||||
buildInputs =
|
||||
inputs
|
||||
++ [
|
||||
self.packages.${system}.astal
|
||||
];
|
||||
inputs = inputs ++ [self.packages.${system}.astal];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user