Code Monkey home page Code Monkey logo

Comments (4)

zimbatm avatar zimbatm commented on June 11, 2024

is that fixed?

from flake-utils.

TristanCacqueray avatar TristanCacqueray commented on June 11, 2024

This issue is still happening when using defaultApp = flake-utils.lib.mkApp { drv = package; }; with nix-2.8 .
This seems to work though: apps.default = flake-utils.lib.mkApp { drv = package; }.

from flake-utils.

tv42 avatar tv42 commented on June 11, 2024

It does not seem like this issue should have been closed.

from flake-utils.

johnrichardrinehart avatar johnrichardrinehart commented on June 11, 2024

EDIT: Discovered that the problem I was describing underneath the divider, below, was because I wasn't conforming to c0e246b . After respecting that commit and moving my defaultApp value to apps.default nix run . works fine.

        apps = rec {
          go_1_18-fips = flake-utils.lib.mkApp { drv = packages.go_1_18-fips;  exePath = "/bin/go";};
          default = go_1_18-fips;
        };

I have a bunch of files in $out/bin and trying to select only one for defaultApp with exePath or name fails with the above error. It doesn't matter if I try apps.defaultApp or defaultApp.

        apps.defaultApp =  flake-utils.lib.mkApp { drv = packages.go_1_18-fips;  name = "go";};

However, the below works just fine as nix run .#go_1_18-fips

        apps.go_1_18-fips = flake-utils.lib.mkApp { drv = packages.go_1_18-fips;  name = "go";};

It's possible this has been the case for as long as nix 2.8. But, in my case

$ nix --version
nix (Nix) 2.10.3
$ cat flake.lock | grep numtide -C 10
{
  "nodes": {
    "flake-utils": {
      "locked": {
        "lastModified": 1659877975,
        "narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=",
        "owner": "numtide",
        "repo": "flake-utils",
        "rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0",
        "type": "github"
      },
      "original": {
        "owner": "numtide",
        "repo": "flake-utils",
        "type": "github"
      }
    },

from flake-utils.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.