Coder Social home page Coder Social logo

Comments (5)

figsoda avatar figsoda commented on May 27, 2024 1

get commit & source date epoch

This seems like something that should to be integrated into fetchgit. I don't think there is much I can do in terms of determining when this is needed, but I do plan to add some way to pass arbitrary flags to nurl that will make this more customizable.

postinstall completions

It would be hard for nix-init to determine when this is needed, maybe there could be some mechanism to let the user choose extra templates that are not specific to the builder? not exactly sure what I should do here

set ldflags

Sounds like a good idea, might be worth looking into integrating with goreleaser (.goreleaser.yaml)

from nix-init.

blaggacao avatar blaggacao commented on May 27, 2024 1
# these are things that could be added in the future
completions = false
man-pages = "auto"
# ...

These are likely in the competing design space with nixpkgs.

I guess, we'd have to be careful between a "support tool" becoming a "nixpkgs fix".

from nix-init.

figsoda avatar figsoda commented on May 27, 2024 1

Implemented detection of ldflags from goreleaser.yml in 06890d7

from nix-init.

blaggacao avatar blaggacao commented on May 27, 2024

choose extra templates that are not specific to the builder? not exactly sure what I should do here

If we don't have design clarity, better not do anything, at all.

I wonder how far (teaching) comments could already get us and a final prompt:

Do you want to customize the generated file? (yes)

from nix-init.

figsoda avatar figsoda commented on May 27, 2024

better not do anything, at all

I agree this should be the default

this is something I have in mind to customize the interactions, note that this is highly theoretical and unpolished

[interactions]

# auto means that nix-init will only prompt when necessary
# default is the preset of what we have right now
base = "default" # "never" | "auto" | "default" | "always"

# the following options will extend the `base`
# all of which will be (true | false | "auto")

# this is the default base
url = "auto"
pname = true
version = true
builder = true

# these are things that could be added in the future
completions = false
man-pages = "auto"
# ...

from nix-init.

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.