move libastal to /core

starting point of the monorepo
This commit is contained in:
Aylur
2024-09-01 02:06:50 +02:00
parent 49cdf5d5e0
commit 0738194780
53 changed files with 30 additions and 36 deletions
View File
View File
View File
View File
View File
-1
View File
@@ -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',
+1
View File
@@ -0,0 +1 @@
0.1.0
+29 -35
View File
@@ -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];
};
};
};