Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

distrobuilder: init at 2018_04_28 #40240

Merged
merged 1 commit into from May 12, 2018
Merged

distrobuilder: init at 2018_04_28 #40240

merged 1 commit into from May 12, 2018

Conversation

megheaiulian
Copy link
Contributor

@megheaiulian megheaiulian commented May 9, 2018

Motivation for this change

Add distrobuilder package.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@Mic92 Mic92 changed the title distrobuilder: init at HEAD distrobuilder: init at 2018-04-28 May 10, 2018
, makeWrapper, coreutils, gnupg, gnutar, squashfsTools}:

buildGoPackage rec {
name = "distrobuilder-unstable-${version}";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would just call it "distrobuilder-${version}" here. Having the date already shows it's not a stable release.


goPackagePath = "github.com/lxc/distrobuilder";

src = fetchgit {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use fetchFromGitHub here unless the repo needs submodules.


buildGoPackage rec {
name = "distrobuilder-unstable-${version}";
version = "2018-04-28";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we prefer to use either dashes or dots here. Otherwise upgrading doesn't work correctly.

Implement feedback
@megheaiulian
Copy link
Contributor Author

@matthewbauer Thank you for the feedback. Updated PR.

@megheaiulian megheaiulian changed the title distrobuilder: init at 2018-04-28 distrobuilder: init at 2018_04_28 May 12, 2018
@matthewbauer matthewbauer merged commit b0d29e7 into NixOS:master May 12, 2018
@megheaiulian megheaiulian deleted the feature/distrobuilder branch May 13, 2018 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants