about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/office/libreoffice/gen-shell.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/office/libreoffice/gen-shell.nix')
-rw-r--r--nixpkgs/pkgs/applications/office/libreoffice/gen-shell.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/office/libreoffice/gen-shell.nix b/nixpkgs/pkgs/applications/office/libreoffice/gen-shell.nix
new file mode 100644
index 000000000000..7429bb0cb382
--- /dev/null
+++ b/nixpkgs/pkgs/applications/office/libreoffice/gen-shell.nix
@@ -0,0 +1,29 @@
+{ pkgs ? (import <nixpkgs> {}), variant }:
+
+with pkgs;
+
+let
+
+  primary-src = callPackage (./. + "/src-${variant}/primary.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;
+  };
+
+  buildInputs = [ python3 ];
+
+  shellHook = ''
+    function generate {
+      python3 generate-libreoffice-srcs.py ${variant} > src-${variant}/download.nix
+    }
+  '';
+}