Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can this update literate configs? #71

Open
shadowrylander opened this issue Jun 17, 2022 · 0 comments
Open

Can this update literate configs? #71

shadowrylander opened this issue Jun 17, 2022 · 0 comments

Comments

@shadowrylander
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant