3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #85673 from Mic92/nixos-shell

This commit is contained in:
Jörg Thalheim 2020-05-24 08:08:59 +01:00 committed by GitHub
commit 9df4eba48b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 0 deletions

View 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;
};
}

View file

@ -20956,6 +20956,8 @@ in
geoip = geoipWithDatabase;
};
nixos-shell = callPackage ../tools/virtualization/nixos-shell {};
node-problem-detector = callPackage ../applications/networking/cluster/node-problem-detector { };
ninjas2 = callPackage ../applications/audio/ninjas2 {};