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

dgen: init at 1.33 #106359

Merged
merged 1 commit into from Dec 17, 2020
Merged

dgen: init at 1.33 #106359

merged 1 commit into from Dec 17, 2020

Conversation

AndersonTorres
Copy link
Member

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • 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 nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/402

Comment on lines +8 to +12
let
pname = "dgen-sdl";
version = "1.33";
in stdenv.mkDerivation {
inherit pname version;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
let
pname = "dgen-sdl";
version = "1.33";
in stdenv.mkDerivation {
inherit pname version;
in stdenv.mkDerivation rec {
pname = "dgen-sdl";
version = "1.33";

Please stop doing this.

Copy link
Member Author

Choose a reason for hiding this comment

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

Why?

platforms = with platforms; unix;
};
}
# TODO: handle configure options
Copy link
Member

Choose a reason for hiding this comment

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

What happens with the TODO?

Copy link
Member Author

Choose a reason for hiding this comment

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

dgen has some interesting options, as building debuggers and emulating some extra processors.

I don know what is the better approach here: using a config parameter (with many enable subparameters) or directly listing possibilites as enableDebugger, enableCoProcessor etc.

Anyway, at least it runs Sonic!

Copy link
Member

Choose a reason for hiding this comment

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

directly listing possibilites as enableDebugger, enableCoProcessor etc.

That is what I saw so far for packages. A config parameter is only used for modules.

@SuperSandro2000
Copy link
Member

SuperSandro2000 commented Dec 9, 2020

Result of nixpkgs-review pr 106359 run on x86_64-linux 1

1 package failed to build:
  • dgen-sdl
'/nix/store/fz05qa2qkh5i9jgiy7dkvw040m4b3wgh-dgen-sdl-1.33.tar.gz.drv' failed with exit code 1; last 7 log lines:                                                                                                                                                                                                                                                             trying https://sourceforge.net/projects/dgen-sdl/files/dgen-sdl/1.33/dgen-sdl-1.33.tar.gz
    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                   Dload  Upload   Total   Spent    Left  Speed
    0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  curl: (22) The requested URL returned error: 404
  error: cannot download dgen-sdl-1.33.tar.gz from any mir

@AndersonTorres AndersonTorres merged commit 40705f1 into NixOS:master Dec 17, 2020
@AndersonTorres AndersonTorres deleted the wip-dgen branch December 17, 2020 15:18
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