mirror of
https://github.com/zoriya/astal.git
synced 2026-05-29 08:51:48 +00:00
@@ -0,0 +1,2 @@
|
||||
build/
|
||||
result/
|
||||
@@ -29,6 +29,9 @@ meson compile -C build
|
||||
meson install -C build
|
||||
```
|
||||
|
||||
> [!NOTE]
|
||||
> on NixOS you will have to add `security.pam.services.astal-auth = {}` in `configuration.nix`
|
||||
|
||||
## Usage
|
||||
This library can be used from any language supporting GObject Introspection.
|
||||
Have a look at the [examples](examples) for how it can be used in C and gjs.
|
||||
|
||||
Generated
+27
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1716137900,
|
||||
"narHash": "sha256-sowPU+tLQv8GlqtVtsXioTKeaQvlMz/pefcdwg8MvfM=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "6c0b7a92c30122196a761b440ac0d46d3d9954f1",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
description = "Authentication library and cli tool";
|
||||
|
||||
inputs.nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
version = builtins.replaceStrings ["\n"] [""] (builtins.readFile ./version);
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
gobject-introspection
|
||||
meson
|
||||
pkg-config
|
||||
ninja
|
||||
vala
|
||||
];
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
glib
|
||||
pam
|
||||
];
|
||||
in {
|
||||
packages.${system} = rec {
|
||||
default = auth;
|
||||
auth = pkgs.stdenv.mkDerivation {
|
||||
inherit nativeBuildInputs buildInputs;
|
||||
pname = "astal-auth";
|
||||
version = version;
|
||||
src = ./.;
|
||||
outputs = ["out" "dev"];
|
||||
};
|
||||
};
|
||||
|
||||
devShells.${system} = {
|
||||
default = pkgs.mkShell {
|
||||
inherit nativeBuildInputs buildInputs;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
project('astal_auth',
|
||||
'c',
|
||||
version : '0.1.0',
|
||||
version : run_command('cat', join_paths(meson.project_source_root(), 'version')).stdout().strip(),
|
||||
default_options : [
|
||||
'c_std=gnu11',
|
||||
'warning_level=3',
|
||||
@@ -30,4 +30,4 @@ endif
|
||||
install_data(
|
||||
'pam/astal-auth',
|
||||
install_dir : get_option('sysconfdir') / 'pam.d'
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user