zopsicle / rakudo-nix

Hopefully up-to-date Nix packages for Rakudo
0 stars 0 forks source link

Trouble with obtain #5

Open ghost opened 4 years ago

ghost commented 4 years ago

Please, can you show your method to override standart rakudo 2017.01; Where I should paste this code?

let
    version = "2019.11";
    rakudo-nix = fetchTarball {
        url = "https://github.com/chloekek/rakudo-nix/archive/${version}.tar.gz";
        sha256 = "06d87z58975a9hzzw6ns51ck0syvpixkn9xrn1b34i76qn95hnii";
    };
    config = {
        packageOverrides = import rakudo-nix;
    };
in
    import <nixpkgs> {config = config;}

Sorry for probably silly question.

zopsicle commented 4 years ago

Hi @Lenin1917,

Depends on your workflow. Do you want to install Rakudo in your profile or do you want to use it as a dependency in another derivation?

ghost commented 4 years ago

Thanks for answer. I want to install Rakudo as package in my profile for development Cro web application.

zopsicle commented 4 years ago

Ah. I’m not very familiar with nix-env, but I suppose you could put that expression in a file and then run nix-env -i -f <file> -A rakudo to install it.