mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-30 16:10:45 +00:00
Restore the legacy development shell after the nixpkgs input switched to a tarball lock entry without owner or repo attributes.
51 lines
1004 B
Nix
51 lines
1004 B
Nix
{
|
|
pkgs ? import <nixpkgs> { },
|
|
}:
|
|
|
|
let
|
|
path = builtins.path {
|
|
path = ./.;
|
|
name = "home-manager-source";
|
|
};
|
|
|
|
nixpkgs = (
|
|
import (
|
|
let
|
|
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
|
n = lock.nodes.nixpkgs.locked;
|
|
in
|
|
fetchTarball {
|
|
inherit (n) url;
|
|
sha256 = n.narHash;
|
|
}
|
|
) { }
|
|
);
|
|
in
|
|
rec {
|
|
docs =
|
|
let
|
|
releaseInfo = pkgs.lib.importJSON ./release.json;
|
|
in
|
|
with import ./docs {
|
|
inherit pkgs;
|
|
inherit (releaseInfo) release isReleaseBranch;
|
|
};
|
|
{
|
|
|
|
inherit manPages jsonModuleMaintainers;
|
|
inherit (manual) html htmlOpenTool;
|
|
inherit (options) json;
|
|
};
|
|
|
|
home-manager = pkgs.callPackage ./home-manager { inherit path; };
|
|
|
|
install = pkgs.callPackage ./home-manager/install.nix { inherit home-manager; };
|
|
|
|
nixos = import ./nixos;
|
|
lib = import ./lib { inherit (pkgs) lib; };
|
|
|
|
dev = nixpkgs.callPackage ./home-manager/devShell.nix { };
|
|
|
|
inherit path;
|
|
}
|