-
-
Notifications
You must be signed in to change notification settings - Fork 19.5k
horizon: 20190716 -> 1.0.0 #56497
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
horizon: 20190716 -> 1.0.0 #56497
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| { stdenv, fetchFromGitHub, pkgconfig, sqlite, libyamlcpp, libuuid, gnome3, epoxy, librsvg, zeromq, cppzmq, glm, libgit2, curl, boost, python3, opencascade, libzip, podofo, wrapGAppsHook }: | ||
|
|
||
| stdenv.mkDerivation rec { | ||
| name = "horizon-eda-${version}"; | ||
| version = "20190716"; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "carrotIndustries"; | ||
| repo = "horizon"; | ||
| rev = "85c171a3dc29d6cab41f5effd230d1769e519b4d"; | ||
| sha256 = "012vi91bxzbvabg6v2ldl916jg24i6pc9lpnniwq3c2pzpvlvndg"; | ||
| }; | ||
|
|
||
| patchPhase = '' | ||
| echo "const char *gitversion = \"${src.rev}\";" > src/gitversion.cpp | ||
| ''; | ||
|
|
||
| buildInputs = [ pkgconfig sqlite libyamlcpp libuuid gnome3.gtkmm epoxy librsvg zeromq cppzmq glm libgit2 curl boost python3 libzip podofo opencascade ]; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please see comment by @joachifm about |
||
|
|
||
| nativeBuildInputs = [ wrapGAppsHook ]; | ||
|
|
||
| NIX_CFLAGS_COMPILE = "-I${opencascade}/include/oce"; | ||
|
|
||
| installPhase = '' | ||
| mkdir -p $out/bin | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Golfing: I believe this reduces to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We now have an install target that also installs icons, desktop entry and such. |
||
| cp build/horizon-eda $out/bin/ | ||
| cp build/horizon-imp $out/bin/ | ||
| ''; | ||
|
|
||
| preFixup = '' | ||
| wrapProgram "$out/bin/horizon-eda" "''${gappsWrapperArgs[@]}" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this actually required? |
||
| ''; | ||
|
|
||
| enableParallelBuilding = true; | ||
|
|
||
| meta = with stdenv.lib; { | ||
| description = "A free EDA software to develop printed circuit boards"; | ||
| homepage = https://github.com/carrotIndustries/horizon; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please quote. |
||
| maintainers = with maintainers; [ luz ]; | ||
| license = licenses.gpl3; | ||
| platforms = platforms.linux; | ||
| }; | ||
| } | ||
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.
Please use
pname = "horizon-eda";instead asname = "${pname}-${version}";is already implied.