Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Nix build output symlink
/result

/.metadata/
/workspace/
cachedir/
Expand Down
79 changes: 79 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 53 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Modelio – open-source UML/BPMN modeling tool
#
# Usage:
# nix build Build Modelio
# nix run Build and launch Modelio
# nix develop Enter dev shell (Maven + JDK 11 + native libs)
# nix build .#container Build OCI container image
# nix run .#container-run Load and run container with Docker
# nix flake check Run smoke tests
#
# See ./nix/README.md for full documentation.
{
description = "Modelio – open-source UML/BPMN modeling tool";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
Comment thread
randomizedcoder marked this conversation as resolved.
Outdated
flake-utils.url = "github:numtide/flake-utils";

# Pinned Modelio source for maven dependency fetching.
# This ensures the maven deps FOD only changes when you explicitly
# run: nix flake update modelio-src
modelio-src = {
url =
"github:randomizedcoder/Modelio/53eb60381eac57b313ea862208b3d38652bf59b9";
flake = false;
};
};

outputs = { nixpkgs, flake-utils, modelio-src, ... }:
flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
let
pkgs = nixpkgs.legacyPackages.${system};
mvnDeps =
pkgs.callPackage ./nix/maven-deps.nix { inherit modelio-src; };
modelio =
pkgs.callPackage ./nix/package.nix { inherit modelio-src mvnDeps; };
container = pkgs.callPackage ./nix/container.nix { inherit modelio; };
in {
packages = {
default = modelio;
inherit modelio;
inherit container;
container-run =
pkgs.callPackage ./nix/container-run.nix { inherit container; };
};

devShells.default = pkgs.callPackage ./nix/shell.nix { };

checks.default = pkgs.callPackage ./nix/test.nix { inherit modelio; };

formatter = pkgs.nixfmt-classic;
});
}
Loading