nixos-shell: init at 0.1.1
This commit is contained in:
parent
6d446c1dc9
commit
f2a77c764d
30
pkgs/tools/virtualization/nixos-shell/default.nix
Normal file
30
pkgs/tools/virtualization/nixos-shell/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
{ stdenv, nix, fetchFromGitHub, makeWrapper }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "nixos-shell";
|
||||||
|
version = "0.1.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "Mic92";
|
||||||
|
repo = "nixos-shell";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1qk5a01vh6wbbkib8xr57w1j4l3n6xdjd46nsw9bsa444fzlc0wr";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
wrapProgram $out/bin/nixos-shell \
|
||||||
|
--prefix PATH : ${stdenv.lib.makeBinPath [ nix ]}
|
||||||
|
'';
|
||||||
|
|
||||||
|
installFlags = [ "PREFIX=${placeholder "out"}" ];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Spawns lightweight nixos vms in a shell";
|
||||||
|
inherit (src.meta) homepage;
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ mic92 ];
|
||||||
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
|
}
|
|
@ -20801,6 +20801,8 @@ in
|
||||||
geoip = geoipWithDatabase;
|
geoip = geoipWithDatabase;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixos-shell = callPackage ../tools/virtualization/nixos-shell {};
|
||||||
|
|
||||||
node-problem-detector = callPackage ../applications/networking/cluster/node-problem-detector { };
|
node-problem-detector = callPackage ../applications/networking/cluster/node-problem-detector { };
|
||||||
|
|
||||||
notion = callPackage ../applications/window-managers/notion { };
|
notion = callPackage ../applications/window-managers/notion { };
|
||||||
|
|
Loading…
Reference in a new issue