home-manager:init at 2017-10-11 (#30330)

home-manager: init at 2017-12-07
This commit is contained in:
pasqui23 2017-12-30 01:52:26 +01:00 committed by Peter Hoeg
parent 6afafd6020
commit 0dd7d213c2
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,38 @@
#Adapted from
#https://github.com/rycee/home-manager/blob/9c1b3735b402346533449efc741f191d6ef578dd/home-manager/default.nix
{ bash, coreutils, less, stdenv, makeWrapper, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "home-manager-${version}";
version = "2017-12-7";
src = fetchFromGitHub{
owner = "rycee";
repo = "home-manager";
rev = "0be32c9d42e3a8739263ae7886dc2448c833c19c";
sha256 = "06lmnzlf5fmiicbgai27ad9m3bj980xf8ifdpc5lzbsy77pfcfap";
};
nativeBuildInputs = [ makeWrapper ];
dontBuild = true;
installPhase = ''
install -v -D -m755 ${src}/home-manager/home-manager $out/bin/home-manager
substituteInPlace $out/bin/home-manager \
--subst-var-by bash "${bash}" \
--subst-var-by coreutils "${coreutils}" \
--subst-var-by less "${less}" \
--subst-var-by HOME_MANAGER_PATH '${src}'
'';
meta = with stdenv.lib; {
description = "A user environment configurator";
maintainers = with maintainers; [ rycee ];
platforms = platforms.linux;
license = licenses.mit;
};
}

View file

@ -1173,6 +1173,8 @@ with pkgs;
hid-listen = callPackage ../tools/misc/hid-listen { };
home-manager = callPackage ../tools/package-management/home-manager {};
hostsblock = callPackage ../tools/misc/hostsblock { };
hr = callPackage ../applications/misc/hr { };