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

fltrator : init at 2.3 #52021

Merged
merged 1 commit into from Apr 11, 2019
Merged

fltrator : init at 2.3 #52021

merged 1 commit into from Apr 11, 2019

Conversation

marius851000
Copy link
Contributor

Motivation for this change

I wanted to learn how to make a nix package. I've picked a random ( apparently simple ) open source game from libregamewiki, and make a package.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option 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" - no package depend on it

  • 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)

  • Assured whether relevant documentation is up to date

  • Fits CONTRIBUTING.md.


Copy link
Contributor

@srhb srhb left a comment

Choose a reason for hiding this comment

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

Welcome and thank you for contributing to nixpkgs! :D

This looks good and appears to work just fine. I have left stylistic comments that I'd like you to resolve.
I also think you can just squash the patch commit into the init commit. :)

pkgs/games/fltrator/default.nix Outdated Show resolved Hide resolved
pkgs/games/fltrator/default.nix Outdated Show resolved Hide resolved
pkgs/games/fltrator/default.nix Outdated Show resolved Hide resolved
pkgs/games/fltrator/default.nix Outdated Show resolved Hide resolved
pkgs/games/fltrator/default.nix Outdated Show resolved Hide resolved
pkgs/games/fltrator/default.nix Outdated Show resolved Hide resolved
pkgs/games/fltrator/default.nix Outdated Show resolved Hide resolved
pkgs/games/fltrator/default.nix Outdated Show resolved Hide resolved
pkgs/games/fltrator/default.nix Outdated Show resolved Hide resolved
pkgs/games/fltrator/default.nix Outdated Show resolved Hide resolved
pkgs/games/fltrator/default.nix Outdated Show resolved Hide resolved
@marius851000
Copy link
Contributor Author

Didn't know what I've done with git, nor how to solve it.

@jtojnar
Copy link
Contributor

jtojnar commented Dec 16, 2018

I would try

git reset --hard master
curl -L https://patch-diff.githubusercontent.com/raw/NixOS/nixpkgs/pull/52021.diff | git apply

Then add, commit, and force push.

fltrator : added patch to made fltrator-landscape use the correct data directory.

fltrator : corrected an error with meta

fltrator : enhancement based on srhb suggestion

fltrator : add .desktop

fltrator : enanced the build file, based on suggestion of jtojnar & srhb

fltrator : use nativeBuildInput rather that buildInputs. suggested by jtojnar

fltrator : desktop file is now pointing to the specific binary, and has icon.

fltrator : deleted the manual unpack phase
@aanderse
Copy link
Member

@marius851000 ping

@marius851000
Copy link
Contributor Author

It appear to be good for me.

@srhb srhb merged commit 9691493 into NixOS:master Apr 11, 2019
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

6 participants