2019-12-18 01:11:51 +00:00
|
|
|
{ pkgs ? (import <nixpkgs> {}), variant }:
|
2016-09-17 00:24:04 +01:00
|
|
|
|
|
|
|
with pkgs;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
2019-12-18 01:11:51 +00:00
|
|
|
primary-src = callPackage (./. + "/src-${variant}/primary.nix") {};
|
2016-09-17 00:24:04 +01:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2016-09-19 04:01:16 +01:00
|
|
|
buildInputs = [ python3 ];
|
|
|
|
|
2016-09-17 00:24:04 +01:00
|
|
|
shellHook = ''
|
|
|
|
function generate {
|
2019-12-18 01:11:51 +00:00
|
|
|
python3 generate-libreoffice-srcs.py ${variant} > src-${variant}/download.nix
|
2016-09-17 00:24:04 +01:00
|
|
|
}
|
|
|
|
'';
|
|
|
|
}
|