-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
loadlibrary: init at 2551be #26074
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
loadlibrary: init at 2551be #26074
Conversation
e621d4a
to
2551bef
Compare
{ fetchurl, cabextract, glibc_multi, fetchFromGitHub, readline, stdenv_32bit }: | ||
|
||
stdenv_32bit.mkDerivation { | ||
name = "loadlibrary"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
version is missing, use something like this:
name = "loadlibrary-${version}";
version = "20170525-${lib.strings.substring 0 7 rev}";
rev = "ca6dce8719d4fd0d347c218cb844275518261bf1";
src = fetchFromGitHub {
inherit rev;
owner = "taviso";
repo = "loadlibrary";
sha256 = "01hb7wzfh1s5b8cvmrmr1gqknpq5zpzj9prq3wrpsgg129jpsjkb";
};
The same we use for go packages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Date of commit is used, so nix knows when to update package.
meta = with stdenv_32bit.lib; { | ||
homepage = "https://github.com/taviso/loadlibrary"; | ||
description = "Porting Windows Dynamic Link Libraries to Linux"; | ||
platforms = platforms.unix; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unix means also osx, are you sure? You can also use platforms.linux
.
|
||
stdenv_32bit.mkDerivation { | ||
name = "loadlibrary"; | ||
#src = fetchurl { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cleanup here
@@ -0,0 +1,30 @@ | |||
{ fetchurl, cabextract, glibc_multi, fetchFromGitHub, readline, stdenv_32bit }: | |||
|
|||
stdenv_32bit.mkDerivation { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A comment why stdenv_32bit
is needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, i ment comment in package, like
# this package requires libc6-i386
cp mpclient $out/bin/ | ||
''; | ||
|
||
meta = with stdenv_32bit.lib; { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just as a note, lib can be imported separately.
016e7e7
to
90a3718
Compare
Thanks! Just squash commits, and we are ready to merge :) |
90a3718
to
0d39873
Compare
0d39873
to
d437261
Compare
Motivation for this change
Addition of loadlibrary to nixpkgs.
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)