Comments (4)
I don't know if should go here, but sourceRoot
support would be awesome.
from nix-init.
The order of the interactive questions isn't very intuitive in my opinion. Right now the output path is asked first then URL and so on. For me at least, it makes much more sense to have URL as the first question then the other packaging related ones and finally the output path. I think in many interactive tools for generating some spec the output path is the last thing being asked.
Almost all the times I use nix-init I accidentally put the URL as the first answer automatically and since the file creating isn't truly atomic (gets created even if nix-init doesn't exit with code 0) I end up with a directory like this:
Enter output path (defaults to current directory)
❯ https://github.com/nix-community/nix-init
Enter url
❯
Error: Interrupted
[kranzes@pongo ~/test]$ ls
https:
[kranzes@pongo ~/test]$ tree
.
└── https:
└── github.com
└── nix-community
└── nix-init
3 directories, 1 file
from nix-init.
nix-template supports writing the output file automatically to a directory in a nixpkgs checkout. I think we could add an option to do the same in nix-init, this should be pretty for python packages as their location in nixpkgs isn't category based but rather pname based, in addition, it could also add it to to pkgs/top-level/python-packages.nix
.
from nix-init.
writing the output file automatically to a directory in a nixpkgs checkout
This sounds useful for buildPythonPackage
, though I'm not sure about other types of packages. I am mostly waiting for NixOS/rfcs#140
This would also be a good argument for prompting for URL (and probably pname) before the output path.
from nix-init.
Related Issues (20)
- Installation does not work HOT 2
- Generated nix-file does not build on macOS HOT 3
- Abort when building subPackages HOT 3
- pyproject build requires build-system definition HOT 3
- bitbucket support HOT 1
- error fetching from pypi on nixos-unstable HOT 2
- buildGoModule ldflags could be formatted better
- Dependency inference for buildGoModule HOT 1
- Automatically find and install man pages and shell completions HOT 2
- Selection does not work under zsh. HOT 13
- SourceHut support
- Document how to use the -n attribute HOT 2
- Generate `pytestCheckHook` input and usage in `nativeCheckInputs` if you detect a `pytest` dependency.
- Automatically set meta.mainProgram
- zon2nix integration
- Error during building HOT 10
- Unable to compile v0.2.4 on Arch HOT 5
- buildPythonPackage: use fetchFromGitHub if tests are missing on Pypi HOT 1
- Handle pypi packages without source available HOT 1
- github:yarnpkg/berry/@yarnpkg/cli/4.0.0-rc.41', '@yarnpkg/cli/4.0.0-rc.41' is not a branch/tag name Error: command exited with exit code exit status: 1 HOT 2
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 nix-init.