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

gargoyle: init at 2017-03-12 #24032

Merged
merged 1 commit into from Mar 21, 2017
Merged

gargoyle: init at 2017-03-12 #24032

merged 1 commit into from Mar 21, 2017

Conversation

orivej
Copy link
Contributor

@orivej orivej commented Mar 18, 2017

Motivation for this change

Gargoyle is a multi-format interactive fiction graphical interpreter. When launched without arguments it opens a file chooser dialog, you could try Kerkerkruip (after unpacking the zip) or zork1. The last release is from 2011 but development is ongoing and I'd prefer to package the latest code.

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.

@mention-bot
Copy link

@orivej, thanks for your PR! By analyzing the history of the files in this pull request, we identified @samuelrivas, @edolstra and @lovek323 to be potential reviewers.

else if stdenv.system == "x86_64-linux" then "bin.linux"
else throw "Unsupported platform by now";
in

stdenv.mkDerivation {
name = "jam-2.5";
src = fetchurl {
Copy link
Contributor

Choose a reason for hiding this comment

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

url = ftp://ftp.perforce.com/jam/${name}.tar;
Makes it easier for when version changes; change one version area verses two

@@ -17,13 +11,13 @@ stdenv.mkDerivation {

installPhase = ''
mkdir -p $out/bin
cp ${bindir}/jam $out/bin
cp bin.*/jam $out/bin
'';

meta = {
Copy link
Contributor

Choose a reason for hiding this comment

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

meta = with stdenv.lib; {
homepage = http://public.perforce.com/wiki/Jam;
 license = licenses.free;
 description = "Just Another Make";
 platforms = platforms.unix;
};
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, here I touched jam only to support darwin, I'm going to update jam in a separate review.

@orivej
Copy link
Contributor Author

orivej commented Mar 19, 2017

jam with darwin support has been merged, I updated this pull request.

@Mic92 Mic92 added the 6.topic: darwin Running or building packages on Darwin label Mar 19, 2017
installPhase = if stdenv.isDarwin then (builtins.readFile ./darwin.sh) else ''
jam -j$NIX_BUILD_CORES install
mkdir -p "$out/bin"
ln -s ../libexec/gargoyle/gargoyle "$out/bin"
Copy link
Member

Choose a reason for hiding this comment

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

the link target is not installed on linux:

$ [nix-shell:/nix/store/c2x2l9cy59qr20msbfjxaiji90906a8x-gargoyle-2017-03-12]$ ls -la bin/gargoyle
lrwxrwxrwx 1 root root 28 Jan  1  1970 bin/gargoyle -> ../libexec/gargoyle/gargoyle
$ bin/gargoyle                                                                      
bash: bin/gargoyle: No such file or directory

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, lost it during refactoring. Fixed by moving environment variable setting from preBuild back to buildPhase and installPhase.

Copy link
Member

Choose a reason for hiding this comment

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

problem still persists:

$ find .
./etc
./etc/garglk.ini
./bin
./bin/gargoyle
./share
./share/icons
./share/icons/hicolor
./share/icons/hicolor/32x32
./share/icons/hicolor/32x32/apps
./share/icons/hicolor/32x32/apps/gargoyle-house.png
./share/applications
./share/applications/gargoyle.desktop
$ ls -la bin/gargoyle                                        
lrwxrwxrwx 1 root root 28 Jan  1  1970 bin/gargoyle -> ../libexec/gargoyle/gargoyle

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are you sure that you built the current revision? Last Travis check confirms that libexec is there: https://travis-ci.org/NixOS/nixpkgs/jobs/212810559#L3500

Copy link
Member

Choose a reason for hiding this comment

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

no, you are right. I updated my pull request branch not correctly.

@Mic92 Mic92 merged commit b5b036a into NixOS:master Mar 21, 2017
@Mic92
Copy link
Member

Mic92 commented Mar 21, 2017

Thanks!

@orivej orivej deleted the gargoyle branch April 7, 2017 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: darwin Running or building packages on Darwin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants