Log in New API Help About

911 bytes of Plain text
Created 2 months ago — expires in 305 days
https://dpaste.com/2BRSSNT7Y
SOFT WRAP RAW TEXT DUPLICATE DIFF
{ stdenv
, fetchFromGitHub
, ...
}:

let
  new-home-manager = fetchFromGitHub 
  {
    owner = "nix-community";
    repo = "home-manager";
    rev = "master";
    sha256 = "0jnxpc1ywnccri1d3m7hqrmxzifi65dk1zyh9xdlbx1fjm4x6xr5";
  };
in

stdenv.mkDerivation rec
{
  pname = "home-manager";
  version = "release-20.09";
  dontBuild = true;
  dontConfigure = true;
  src = fetchFromGitHub 
  {
    owner = "nix-community";
    repo = "home-manager";
    rev = version;
    sha256 = "0i5fxaxqm53zp767smrn250q1wjywf9c1jmg6vhp28973p7jysah";
  };
  installPhase = 
  ''
    mkdir $out/ -p
    cp $src/* $out/ -r
    chmod 744 -R $out/
    cp ${new-home-manager}/modules/services/window-managers/i3-sway/* $out/modules/services/window-managers/i3-sway -r
    cp ${new-home-manager}/tests/modules/services/window-managers/i3/* $out/tests/modules/services/window-managers/i3 -r
  '';
}