This repository has been archived by the owner on Oct 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
package.nix
Sheena Artrip edited this page Jun 10, 2017
·
9 revisions
{ stdenv, python, fetchFromGitHub }:
stdenv.mkDerivation rec {
version = "0.3.3";
name = "nix-home-${version}";
src = fetchFromGitHub {
rev = version;
repo = "nix-home";
owner = "sheenobu";
sha256 = "09g9sygshirqd0c480pxbf2ygcwn23nrw9xqfwcxd61f43ap4hhf";
};
patchPhase = ''
substituteInPlace nix-home --replace "NIXHOME" "$out/nix/lib"
substituteInPlace nix-build-home --replace "NIXHOME" "$out/nix/lib"
'';
installPhase = ''
# install binary
mkdir -p $out/bin
cp nix-home $out/bin
cp nix-build-home $out/bin
chmod +x $out/bin/nix-build-home
chmod +x $out/bin/nix-home
# install nix-home lib
mkdir -p $out/nix
cp -a lib $out/nix
'';
meta = {
homepage = https://github.com/sheenobu/nix-home;
description = "Per-user configuration management via Nix";
licenses = [ stdenv.lib.license.mit ];
platforms = stdenv.lib.platforms.unix;
inherit version;
};
}