-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
28 lines (26 loc) · 810 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
description = "Adding programs available via Nix to KRunner.";
inputs.nixpkgs.url = "nixpkgs";
outputs = {nixpkgs, ...}: let
systems = ["x86_64-linux" "aarch64-linux"];
forAllSystems = f: nixpkgs.lib.genAttrs systems (sys: f nixpkgs.legacyPackages.${sys});
in rec {
packages = forAllSystems (pkgs: {
default = pkgs.callPackage ./. {};
});
devShells = forAllSystems (pkgs: {
default = let
inherit (packages.${pkgs.system}) default;
inherit (pkgs) lib mkShell dbus;
in
mkShell {
inherit (default) DBUS_SERVICE DBUS_PATH;
inputsFrom = [default];
LD_LIBRARY_PATH = lib.makeLibraryPath [dbus];
};
});
overlays.default = final: prev: {
krunner-nix = final.callPackage ./. {};
};
};
}