1 { lib, stdenv, nix, jq, fetchFromGitHub, makeWrapper }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-plRKXQqww7easx0wgGKAkOJH1TW/PeeB20dq9XUN8J4=";
14 nativeBuildInputs = [ makeWrapper ];
17 wrapProgram $out/bin/nixos-shell \
18 --prefix PATH : ${lib.makeBinPath [ nix jq ]}
21 installFlags = [ "PREFIX=${placeholder "out"}" ];
24 description = "Spawns lightweight nixos vms in a shell";
25 inherit (src.meta) homepage;
26 license = licenses.mit;
27 maintainers = with maintainers; [ mic92 ];
28 platforms = platforms.unix;
29 mainProgram = "nixos-shell";