summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index 1b94c1c..7f644bd 100644
--- a/flake.nix
+++ b/flake.nix
@@ -1,6 +1,4 @@
{
- inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
-
outputs = {
self,
nixpkgs,
@@ -22,11 +20,15 @@
vala
wayland
wayland-scanner
+ python3
];
propagatedBuildInputs = [pkgs.glib] ++ inputs;
pname = name;
version = readVer "${src}/version";
src = src;
+ postUnpack = ''
+ cp --remove-destination ${./lib/gir.py} $sourceRoot/gir.py
+ '';
outputs = ["out" "dev"];
};
in {
@@ -59,6 +61,7 @@
river = mkPkg "astal-river" ./lib/river [json-glib];
tray = mkPkg "astal-tray" ./lib/tray [gtk3 gdk-pixbuf libdbusmenu-gtk3 json-glib];
wireplumber = mkPkg "astal-wireplumber" ./lib/wireplumber [wireplumber];
+ # polkit = mkPkg "astal-polkit" ./lib/polkit [polkit];
gjs = pkgs.stdenvNoCC.mkDerivation {
src = ./lang/gjs;
@@ -73,4 +76,8 @@
};
};
};
+
+ inputs = {
+ nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
+ };
}