diff options
author | Aylur <[email protected]> | 2024-09-01 02:48:54 +0200 |
---|---|---|
committer | Aylur <[email protected]> | 2024-09-01 02:48:54 +0200 |
commit | 18bbf27cad2095b2d81e420f96feb88501f5d2dd (patch) | |
tree | 8db00e8fc1889efadc38427f82f6936343c28837 /notifd/flake.nix | |
parent | 0738194780ce52b9047c430b9498487417b2cd07 (diff) | |
parent | d08cc85fc1f7beba59ec74bd1f2d8a804183ce2d (diff) |
merge notifd
Diffstat (limited to 'notifd/flake.nix')
-rw-r--r-- | notifd/flake.nix | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/notifd/flake.nix b/notifd/flake.nix new file mode 100644 index 0000000..b4e7a45 --- /dev/null +++ b/notifd/flake.nix @@ -0,0 +1,54 @@ +{ + description = "Notification daemon library and cli tool"; + + inputs.nixpkgs.url = "github:nixos/nixpkgs/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 + gdk-pixbuf + json-glib + ]; + in { + packages.${system} = rec { + default = notifd; + notifd = pkgs.stdenv.mkDerivation { + inherit nativeBuildInputs buildInputs; + pname = "astal-notifd"; + version = version; + src = ./.; + outputs = ["out" "dev"]; + }; + }; + + devShells.${system} = { + default = pkgs.mkShell { + inherit nativeBuildInputs buildInputs; + }; + notifd = pkgs.mkShell { + inherit nativeBuildInputs; + buildInputs = + buildInputs + ++ [ + self.packages.${system}.default + pkgs.gjs + ]; + }; + }; + }; +} |