diff options
author | Aylur <[email protected]> | 2024-09-01 03:23:02 +0200 |
---|---|---|
committer | Aylur <[email protected]> | 2024-09-01 03:23:02 +0200 |
commit | 9573f14c3e6dbfadbf443936e8f6375c48bfa8c3 (patch) | |
tree | 03bdc71d7dc2dccb3d9cf6291997c155def2d455 /river/flake.nix | |
parent | 3390e65f317b3f3c0a612311f46db35bd6107234 (diff) | |
parent | 247ac06b867a20b4c30f3f374a88ebfd40165753 (diff) |
merge river
Diffstat (limited to 'river/flake.nix')
-rw-r--r-- | river/flake.nix | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/river/flake.nix b/river/flake.nix new file mode 100644 index 0000000..766263f --- /dev/null +++ b/river/flake.nix @@ -0,0 +1,54 @@ +{ + description = "Library and cli tool for querying river"; + + 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 + wayland + ]; + + buildInputs = with pkgs; [ + glib + json-glib + ]; + in { + packages.${system} = rec { + default = river; + river = pkgs.stdenv.mkDerivation { + inherit nativeBuildInputs buildInputs; + pname = "astal-river"; + version = version; + src = ./.; + outputs = ["out" "dev"]; + }; + }; + + devShells.${system} = { + default = pkgs.mkShell { + inherit nativeBuildInputs buildInputs; + }; + river = pkgs.mkShell { + inherit nativeBuildInputs; + buildInputs = + buildInputs + ++ [ + pkgs.gjs + self.packages.${system}.default + ]; + }; + }; + }; +} |