Jan 2017
London Nixos Usergroup
(coming soon to nixpkgs - partially is already in)
{ stdenv, ... }:
stdenv.mkDerivation {
name
src = fetchFromGithubWithUpdate {
owner = "gutschke";
repo = "pdf2odt";
branch = "master";
path = "pkgs/tools/typesetting/pdf2odt/src.json";
};
... or ...
src = fetchFromGitHub (stdenv.lib.importJSON ./src.json);
passthru.updateScript = updateFromGitHub {
owner = "gutschke";
repo = "pdf2odt";
branch = "master";
path = "pkgs/tools/typesetting/pdf2odt/src.json";
};
}
----
nix-shell maintainers/scripts/update.nix --argstr package pdf2odt
Help shape next release (07.02.2017)
pypi2nix -r requirements.txt
nix-build -A requirements.nix -A interpreter
TODO: copy how pelican set was integrated in nixos-weekly