about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/office/libreoffice/default-gen-shell.nix
blob: 36603097123789d93133dc50d0c2d08054ee2e50 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ pkgs ? (import <nixpkgs> {}) }:

with pkgs;

let

  primary-src = callPackage ./default-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;
  };

  buildInputs = [ python3 ];

  shellHook = ''
    function generate {
      python3 generate-libreoffice-srcs.py > libreoffice-srcs.nix
    }
  '';
}