bee1fa9a20
The lorri module was recently added.
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
#Adapted from
|
|
#https://github.com/rycee/home-manager/blob/2c07829be2bcae55e04997b19719ff902a44016d/home-manager/default.nix
|
|
|
|
{ bash, coreutils, findutils, gnused, less, stdenv, makeWrapper, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "home-manager";
|
|
version = "2019-11-17";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rycee";
|
|
repo = "home-manager";
|
|
rev = "286dd9b3088298e5a4625b517f8e72b1c62e4f74";
|
|
sha256 = "0p3ba287h9a7mpj8chdgvz5qryc15qxdis3fdmv9jvl0hwsr738d";
|
|
};
|
|
|
|
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 findutils "${findutils}" \
|
|
--subst-var-by gnused "${gnused}" \
|
|
--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;
|
|
};
|
|
|
|
}
|