Skip to content

Can this update literate configs? #71

@shadowrylander

Description

@shadowrylander

Hello!

I was wondering whether this can update literate configs, such as org-mode files with explicitly stated revs, such as in the following example:

* flk.nix

#+begin_src nix :tangle (meq/tangle-path)
{ stdenv, fetchgit, lib }: stdenv.mkDerivation rec {
    pname = "flk";
    version = "1.0.0.0";

    src = fetchgit {
        url = "https://github.com/chr15m/flk.git";
        rev = "46a88bdb461dda336d5aca851c16d938e05304dc";
        sha256 = "sha256-NAhWe0O1K3LOdIwYNOHfkBzkGm+h0wckpsCuY/lY/+8=";
        deepClone = true;
    };

    installPhase = ''
        mkdir --parents $out/bin
        cp ./docs/flk $out/bin/
    '';

    meta = {
        description = "A LISP that runs wherever Bash is";
        homepage = "https://github.com/chr15m/flk";
        license = lib.licenses.mpl20;
    };
}
#+end_src

Thank you kindly for the clarification!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions