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

nas: init at 1.9.4 #26712

Merged
merged 1 commit into from Jun 28, 2017
Merged

nas: init at 1.9.4 #26712

merged 1 commit into from Jun 28, 2017

Conversation

ghost
Copy link

@ghost ghost commented Jun 19, 2017

Motivation for this change
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
    • Linux
  • 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.

sha256 = "17dk0ckm6mp1ajc0cd6bwyi638ynw2f6bhbn7gynrs0wfmiyldng";
};

buildInputs = [ imake bison flex gccmakedep ]
Copy link
Member

Choose a reason for hiding this comment

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

imake, bison, flex, gccmakedep should be in nativeBuildInputs.

++ (with xorg; [ xproto libXau libXt libXext libXaw libXpm ]);

buildPhase = ''
xmkmf
Copy link
Member

Choose a reason for hiding this comment

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

Would be nicer to call xmkmf in preBuild and pass World using makeFlags.

Copy link
Author

Choose a reason for hiding this comment

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

I've found that make WORLDOPTS="" World is needed to ensure there are no build errors (default is WORLDOPTS=-k in Imakefile) and this only works for me using buildPhase

'';

installPhase = ''
make install LDLIBS=-lfl DESTDIR=$out
Copy link
Member

Choose a reason for hiding this comment

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

Same here. Pass LDLIBS=-lfl DESTDIR=$out using installFlags ...

installPhase = ''
make install LDLIBS=-lfl DESTDIR=$out

mv $out/${xorg.xorgcffiles}/* $out
Copy link
Member

Choose a reason for hiding this comment

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

... and move that code to postInstall.


nativeBuildInputs = [ imake bison flex_2_6_1 gccmakedep ];

buildInputs = with xorg; [ xproto libXau libXt libXext libXaw libXpm ];
Copy link
Contributor

Choose a reason for hiding this comment

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

callPackage is able to fill in parameters from the xorg attrset, so there's no need to pass the whole thing.

Copy link
Author

Choose a reason for hiding this comment

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

@joachifm Done, thank you!

@pSub pSub merged commit 3dea294 into NixOS:master Jun 28, 2017
@ghost ghost deleted the master2 branch June 29, 2017 10:32
@ghost
Copy link
Author

ghost commented Jun 30, 2017

@pSub Thank you!

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

2 participants