Browse Source

Add a default.nix file

master
Peter J. Jones 1 year ago
parent
commit
26622de885
Signed by: pjones <pjones@devalot.com> GPG Key ID: 9DAFAA8D01941E49
2 changed files with 19 additions and 0 deletions
  1. +1
    -0
      .gitignore
  2. +18
    -0
      default.nix

+ 1
- 0
.gitignore View File

@@ -0,0 +1 @@
/result

+ 18
- 0
default.nix View File

@@ -0,0 +1,18 @@
{ pkgs ? import <nixpkgs> { }
}:

pkgs.stdenvNoCC.mkDerivation {
name = "tmuxrc";
meta.description = "Peter's tmux configuration.";
src = ./.;

phases =
[ "unpackPhase"
"installPhase"
];

installPhase = ''
mkdir -p $out
cp -r --preserve=mode bin config $out/
'';
}

Loading…
Cancel
Save