diff options
Diffstat (limited to 'bluetooth/flake.nix')
-rw-r--r-- | bluetooth/flake.nix | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/bluetooth/flake.nix b/bluetooth/flake.nix deleted file mode 100644 index 04effee..0000000 --- a/bluetooth/flake.nix +++ /dev/null @@ -1,52 +0,0 @@ -{ - description = "Library to control bluez over dbus"; - - 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 - ]; - in { - packages.${system} = rec { - default = bluetooth; - bluetooth = pkgs.stdenv.mkDerivation { - inherit nativeBuildInputs buildInputs; - pname = "astal-bluetooth"; - version = version; - src = ./.; - outputs = ["out" "dev"]; - }; - }; - - devShells.${system} = { - default = pkgs.mkShell { - inherit nativeBuildInputs buildInputs; - }; - bluetooth = pkgs.mkShell { - inherit nativeBuildInputs; - buildInputs = - buildInputs - ++ [ - self.packages.${system}.default - pkgs.gjs - ]; - }; - }; - }; -} |