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

Moe: init at 1.9 #29114

Merged
merged 1 commit into from Sep 11, 2017
Merged

Moe: init at 1.9 #29114

merged 1 commit into from Sep 11, 2017

Conversation

AndersonTorres
Copy link
Member

@AndersonTorres AndersonTorres commented Sep 8, 2017

Moe is a small text editor.

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 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
Copy link
Member

Mic92 commented Sep 8, 2017

trying http://ftp.gnu.org/moe/moe-1.9.tar.lz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found
error: cannot download moe-1.9.tar.lz from any mirror

version = "1.9";

src = fetchurl{
url = "http://ftp.gnu.org/moe/${name}.tar.lz";
Copy link
Member

Choose a reason for hiding this comment

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

Please use mirror://gnu

name = "moe-${version}";
version = "1.9";

src = fetchurl{
Copy link
Member

Choose a reason for hiding this comment

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

missing space

sha256 = "1wsfzy0iia0c89wnx1ilzw54wqcmlp2nz8mkpvc393z0zagrx48q";
};

buildInputs = [ lzip ncurses ];
Copy link
Member

Choose a reason for hiding this comment

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

lzip should be nativeBuildInput if it is only used to unpack the tarball

delimiter matching, text conversion from/to UTF-8, romanization, etc.
'';
homepage = http://www.gnu.org/software/moe/;
license = licenses.gpl3Plus;
Copy link
Contributor

Choose a reason for hiding this comment

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

According to the text of the homepage, the license is gpl2plus.

homepage = http://www.gnu.org/software/moe/;
license = licenses.gpl3Plus;
maintainers = with maintainers; [ AndersonTorres ];
platforms = platforms.unix;
Copy link
Contributor

Choose a reason for hiding this comment

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

On macOS (aka darwin), build fails with:

c++  -O2 -c -o window_vector.o window_vector.cc
window_vector.cc:1033:21: error: call to member function 'insert' is ambiguous
      { year_string.insert( 0U, 1, '0' + ( year % 10 ) ); year /= 10; }
        ~~~~~~~~~~~~^~~~~~

A possible work-around is to declare a less general platform.

Copy link
Member Author

Choose a reason for hiding this comment

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

Is it triggered only in clang?

Copy link
Member

Choose a reason for hiding this comment

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

Either that or this code is not compiled on Linux.

@AndersonTorres
Copy link
Member Author

I think everything is OK now.

}:

with stdenv.lib;
stdenv.mkDerivation rec{
Copy link
Member

Choose a reason for hiding this comment

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

Put a space between rec and { here. (Just for style though I think.)

Copy link
Member Author

Choose a reason for hiding this comment

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

rec is reserved word. It is really necessary?

Maybe in a short future we would need to standardize the nix(pkgs) programming style.

P.S.: as a curiousity, I ran the commands above:

  • 0 space: git grep 'rec{' | wc -l => 40
  • 1 space: git grep 'rec {' | wc -l => 10111

Copy link
Member

Choose a reason for hiding this comment

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

Oh I'm not sure I just thought this was a typo.

sha256 = "1wsfzy0iia0c89wnx1ilzw54wqcmlp2nz8mkpvc393z0zagrx48q";
};

nativeBuildInputs = [ lzip ]
Copy link
Member

Choose a reason for hiding this comment

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

Missing semicolon at end of line.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh man, I was very distracted yesterday.

Moe is a small text editor.
@Mic92 Mic92 merged commit f3ecd57 into NixOS:master Sep 11, 2017
@AndersonTorres AndersonTorres deleted the upload/moe branch February 23, 2018 01:25
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

5 participants