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
relpipe: init at 0.17.1 #89787
relpipe: init at 0.17.1 #89787
Conversation
While testing the functionality in |
Not sure if the merge commit will cause any noise when merging, Maybe you could remove it? |
pkgs/tools/text/relpipe/default.nix
Outdated
meta = { | ||
maintainers = [ stdenv.lib.maintainers.MostAwesomeDude ]; | ||
homepage = https://relational-pipes.globalcode.info/; | ||
license = stdenv.lib.licenses.gpl3; | ||
description = "An open data format designed for streaming structured data between two processes"; | ||
}; |
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.
meta = { | |
maintainers = [ stdenv.lib.maintainers.MostAwesomeDude ]; | |
homepage = https://relational-pipes.globalcode.info/; | |
license = stdenv.lib.licenses.gpl3; | |
description = "An open data format designed for streaming structured data between two processes"; | |
}; | |
meta = with stdenv.lib; { | |
description = "An open data format designed for streaming structured data between two processes"; | |
homepage = "https://relational-pipes.globalcode.info/"; | |
license = licenses.gpl3; | |
maintainers = with maintainers; [ MostAwesomeDude ]; | |
}; |
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.
@MostAwesomeDude please address this review comment as well.
Please remove the merge conflict. |
Result of 1 package built:
|
Please remove the merge master commit. |
Tested a couple of the utilities. I don't have a setup for testing the JACK tools though.
0506552
to
4cf72af
Compare
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.
Very good looking package!
}; | ||
in symlinkJoin { | ||
name = "relpipe"; | ||
paths = [ |
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.
It would be nice if it was possible to disable some of these packages, to spare some closure size for those who wish so.
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.
Sure. Or we could split them into an attrset. The upstream intent is that a metapackage will have all of the utilities, but there's nothing wrong with exposing them ala carte.
And do a couple fixups so that the package still builds. Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Co-authored-by: Doron Behar <doron.behar@gmail.com>
This is more accurate. Requested from code review.
2aa8833
to
bbb1f4a
Compare
I think that I've handled all review comments, save for the following:
Thanks for coming with me on this marathon. I'm renaming the PR to indicate that the merge would make 0.17.1 available, not 0.16. |
👍
I don't understand the idea, but it'd be nice if you'd allow overriding the derivation in a way that will enable saving some closure size for those who wish so, with this change: diff --git i/pkgs/tools/text/relpipe/default.nix w/pkgs/tools/text/relpipe/default.nix
index e0603972e92..1f66803413d 100644
--- i/pkgs/tools/text/relpipe/default.nix
+++ w/pkgs/tools/text/relpipe/default.nix
@@ -1,5 +1,19 @@
-{ lib, stdenv, fetchhg, cmake, pkg-config, installShellFiles, symlinkJoin
-, xercesc, libxmlxx, guile_2_2, unixODBC, python36, libjack2 }:
+{ lib
+, stdenv
+, fetchhg
+, cmake
+, pkg-config
+, installShellFiles
+, symlinkJoin
+, xercesc
+, libxmlxx
+, guile_2_2
+, unixODBC
+, python36
+, libjack2
+# Use attribute names strings to disable modules
+, disabledModules ? []
+}:
# Build instructions: https://relational-pipes.globalcode.info/v_0/release-v0.16.xhtml
let
@@ -37,6 +51,7 @@ let
# Our ordering here loosely follows upstream build order, but Nix frees us
# from following it strictly.
+ availableModules = {
lib-common = mkRelPipe {
pname = "lib-common";
hash = "18s6nq0n1vn12p1akar12ki18fjp0s3y9vzs87wcdj3dk7v4z7dx";
@@ -185,11 +200,9 @@ let
hash = "16q9ck2qwyy8f7yqcaab1dicwav325cmajqah9q89xrlkjx3mq2j";
deps = [ lib-cli lib-common lib-reader libjack2 ];
};
+ };
in symlinkJoin {
name = "relpipe-${version}";
- paths = [
- in-fstab in-cli in-xml in-xmltable in-csv in-recfile in-filesystem in-jack
- tr-cut tr-grep tr-sed tr-awk tr-scheme tr-sql tr-python tr-validator
- out-nullbyte out-ods out-tabular out-xml out-csv out-asn1 out-recfile out-jack
- ];
+
+ paths = builtins.attrValues (builtins.removeAttrs availableModules disabledModules);
} It's a personal and common preference of mine and a lot of others to use 1 input per line, at the beginning of derivation.
Not a blocker IMO too. |
|
||
meta = with lib; { | ||
maintainers = [ maintainers.MostAwesomeDude ]; | ||
homepage = https://relational-pipes.globalcode.info/; |
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.
homepage = https://relational-pipes.globalcode.info/; | |
homepage = "https://relational-pipes.globalcode.info/"; |
so, any progress? need any help? |
Yeah, I'll let somebody else finish this. Thanks for reviewing. |
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)