Comments (4)
is that fixed?
from flake-utils.
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.
It does not seem like this issue should have been closed.
from flake-utils.
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)
- feat: Cut more releases
- by-name HOT 7
- Q: why does flattenTree rely on recurseIntoAttrs? HOT 4
- eachDefaultSystem leads to missing architecture attributes HOT 4
- simpleFlake to support defaultSystems HOT 2
- Outputs spec update makes `eachSystemMap` powerful HOT 2
- move functions to nixpkgs HOT 2
- Use `meta.mainProgram` by default in `mkApp` HOT 4
- Request for Semantic Version Pinning HOT 1
- Request for Semantic Version Pinning HOT 1
- `flattenTree` cannot seem to flatten `legacyPackages` to a `packages`-compatible format HOT 5
- Should `filterPackages` check `meta.hydraPlatforms`? HOT 2
- nixops support HOT 4
- self parameter for eachSystem/eachDefaultSystem HOT 2
- single arch+os override flake HOT 15
- Potential feature-freeze or deprecation in favor of flake-parts HOT 2
- master rename to main breaks nix flake update HOT 3
- eachDefaultSystem docs are sorely missing a real example HOT 4
- This `flake.system.nix` approach... relies on a broken nix feature
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flake-utils.