about summary refs log tree commit diff
path: root/pkgs/applications/office/libreoffice/still-gen-shell.nix
diff options
context:
space:
mode:
authorChris Martin <ch.martin@gmail.com>2016-09-16 19:24:04 -0400
committerChris Martin <ch.martin@gmail.com>2016-09-16 19:24:04 -0400
commitbb8d294270b36205ff4b5e5de39e37f9f22300c1 (patch)
tree2311b60938f42c938afa91cfb792d9f0ddb71e6f /pkgs/applications/office/libreoffice/still-gen-shell.nix
parentedcaebf1d9e7b7440985a34e5273b82bce5eb938 (diff)
libreoffice: add nix shells for source generation
Diffstat (limited to 'pkgs/applications/office/libreoffice/still-gen-shell.nix')
-rw-r--r--pkgs/applications/office/libreoffice/still-gen-shell.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/applications/office/libreoffice/still-gen-shell.nix b/pkgs/applications/office/libreoffice/still-gen-shell.nix
new file mode 100644
index 0000000000000..991492e2d986f
--- /dev/null
+++ b/pkgs/applications/office/libreoffice/still-gen-shell.nix
@@ -0,0 +1,27 @@
+{ pkgs ? (import <nixpkgs> {}) }:
+
+with pkgs;
+
+let
+
+  primary-src = callPackage ./still-primary-src.nix {};
+
+in
+
+stdenv.mkDerivation {
+  name = "generate-libreoffice-srcs-shell";
+
+  buildCommand = "exit 1";
+
+  downloadList = stdenv.mkDerivation {
+    name = "libreoffice-${primary-src.version}-download-list";
+    inherit (primary-src) src version;
+    builder = ./download-list-builder.sh;
+  };
+
+  shellHook = ''
+    function generate {
+      ./generate-libreoffice-srcs.sh | tee libreoffice-srcs-still.nix
+    }
+  '';
+}