question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`flake.nix` (or; remove need for `--impure` flag on nixos install)

See original GitHub issue

I’m running nixos, and I can’t install daedalus in pure mode. I need to run --impure flag on nixos-rebuild switch, or else I get the following bug

building the system configuration...
error: attribute 'currentSystem' missing

       at /nix/store/77yavamh2axnx8znz6dwbpjwmgg96bhw-iohk-nix-src/default.nix:2:12:

            1| { config ? {}
            2| , system ? builtins.currentSystem
             |            ^
            3| , crossSystem ? null

       … while evaluating the attribute 'system'

       at /nix/store/77yavamh2axnx8znz6dwbpjwmgg96bhw-iohk-nix-src/default.nix:47:20:

           46|             overlays = extraOverlays;
           47|             inherit system crossSystem;
             |                    ^
           48|           } // args);

       … while evaluating the attribute 'system'

       at /nix/store/d5hgy42a104xh2ajkrfy5i3gl9425v45-nixpkgs-src/pkgs/top-level/impure.nix:18:19:

           17|   # (build, in GNU Autotools parlance) platform.
           18|   localSystem ? { system = args.system or builtins.currentSystem; }
             |                   ^
           19|

       … while evaluating 'splitString'

       at /nix/store/d5hgy42a104xh2ajkrfy5i3gl9425v45-nixpkgs-src/lib/strings.nix:440:23:

          439|   */
          440|   splitString = _sep: _s:
             |                       ^
          441|     let

       … from call site

       at /nix/store/d5hgy42a104xh2ajkrfy5i3gl9425v45-nixpkgs-src/lib/systems/parse.nix:472:69:

          471|
          472|   mkSystemFromString = s: mkSystemFromSkeleton (mkSkeletonFromList (lib.splitString "-" s));
             |                                                                     ^
          473|

       … while evaluating 'mkSkeletonFromList'

....
.....
...

My install looks like this, with home-manager:

let 
  daedalus = (import (pkgs.fetchFromGitHub {
    owner = "input-output-hk";
    repo = "daedalus";
    rev = "478ec558705cebfc660b7b4ebba3aa20c6bfb6b6";
    sha256 = "+7t3nfe+J9iZZ1LiPP0m8c0lvl09HeTOgfQ/OcUWiog=";
  }) { }).daedalus; in
...
home.packages = [ ... daedalus ... ]
...

I think a flake would be a better way to install daedalus.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
danielmaincommented, Aug 24, 2022

Hi @quinn-dougherty we only give official support by using the signed installers from www.daedaluswallet.io

But I am sure @michalrus could give you an answer here 🙏

0reactions
michalruscommented, Aug 29, 2022

Oh, so there is no name for the defaultPackage on that branch?

Interesting 😮 Thanks! 🙇 I’ll add it 📝

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flakes - NixOS Wiki
Flakes replace the nix-channels command and things like ad-hoc invocations of builtins.fetchgit - no more worrying about keeping your channels in sync, no...
Read more >
NixOS
Commands for upgrading or troubleshooting your Nix installation: ... These have the form flakeref[ # attrpath], where flakeref is a flake reference and ......
Read more >
NixOS Setup Guide - Configuration / Home-Manager / Flakes
This course covers: - NixOS (configuration. nix and ... Depending on your system, other kernel modules are needed for the system.
Read more >
Nix Flakes - zimbatm
This is needed to expose the Nix 2.0 CLI and flakes support that are hidden behind feature-flags. Finally, if the Nix installation is...
Read more >
Nix Flakes, Part 3: Managing NixOS systems - Tweag
It's easy to enable a package or system service in a NixOS configuration if it is part of the nixpkgs repository: you just...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found