about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2017-10-16T22·28+0200
committerVincent Ambo <tazjin@gmail.com>2017-10-16T22·28+0200
commit296ae9f1fdd6ca499358e49901faeb985f5e926b (patch)
treedf28f0392bdaf21f81dbc81d2b84f44be5d2a315 /pkgs
parent202467e9894f4b33186b686d66a4b98a1ac386a8 (diff)
feat(pkgs): Add 'wallpapers' derivation
Adds a derivation that fetches my wallpapers from git.

I'm getting closer to understanding "the Nix way", i.e. that maybe
thinking about stuff like this in terms of "the wallpapers should be
in my home folder" is incorrect.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/wallpapers.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/wallpapers.nix b/pkgs/wallpapers.nix
new file mode 100644
index 000000000000..2f15e45113b8
--- /dev/null
+++ b/pkgs/wallpapers.nix
@@ -0,0 +1,21 @@
+# Fetch my wallpapers from git
+with import <nixpkgs> {};
+
+stdenv.mkDerivation {
+  name    = "tazjins-wallpapers-1";
+
+  src = fetchgit {
+    url = "https://git.tazj.in/tazjin/wallpapers.git";
+    rev = "3bce73b605ba5f848cb4e7cc33058a2be3952c68";
+  };
+
+  installPhase = ''
+    mkdir -p $out/share/wallpapers
+    cp -r $src/* $out/share/wallpapers
+  '';
+
+  meta = with stdenv.lib; {
+    description = "tazjin's wallpaper collection";
+    platforms = platforms.all;
+  };
+}