mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-16 22:31:03 +02:00
- redefine `{default,shell}.nix` to derive from `flake.nix` (using `flake-compat`) - use `flake-parts`' `_module.args.pkgs` machinery to apply overlays (instead of `pkgsFor`) - extract `homeManagerModule` to `nix/module.nix` - rename package at `nix/default.nix` to `nix/package.nix` Co-authored-by: reo101 <pavel.atanasov2001@gmail.com>
13 lines
402 B
Nix
13 lines
402 B
Nix
(import
|
|
(
|
|
let
|
|
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
|
nodeName = lock.nodes.root.inputs.flake-compat;
|
|
in
|
|
fetchTarball {
|
|
url = lock.nodes.${nodeName}.locked.url or "https://github.com/edolstra/flake-compat/archive/${lock.nodes.${nodeName}.locked.rev}.tar.gz";
|
|
sha256 = lock.nodes.${nodeName}.locked.narHash;
|
|
}
|
|
)
|
|
{ src = ./.; }
|
|
).shellNix
|