WIP: Restructuring to new scheme

This commit is contained in:
Jonas Juselius
2019-10-16 10:32:19 +02:00
parent e4765df729
commit 361dbcea72
30 changed files with 8 additions and 40 deletions

38
nixos.bak/nix-home.nix Normal file
View File

@@ -0,0 +1,38 @@
{ stdenv, python, fetchFromGitHub }:
stdenv.mkDerivation rec {
version = "0.3.2";
name = "nix-home-${version}";
src = fetchFromGitHub {
rev = version;
repo = "nix-home";
owner = "sheenobu";
sha256 = "0l27vg651s9mmq0sypxgrrdq9386rhjbgh9wilzm3dmr0d2j9mwa";
};
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;
};
}