NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.2k stars 14.2k forks source link

ELAN Annotation Software #194016

Open hgouni opened 2 years ago

hgouni commented 2 years ago

Project description

ELAN is an application for annotating recordings of human speech with linguistic information, such as phonetic transcriptions.

Metadata

I've currently got this Nix flake, which works for running it:

{
  description = "ELAN, for linguistic annotation of audio data";

  inputs = {
    nixpkgs.url      = "github:nixos/nixpkgs/nixos-unstable";
    flake-utils.url  = "github:numtide/flake-utils";
  };

  outputs = { self, nixpkgs, flake-utils, ... }:
    flake-utils.lib.eachDefaultSystem (system:
      let
        pkgs = nixpkgs.legacyPackages.${system};
      in
      {
        devShell = pkgs.mkShell {
          buildInputs = [
            pkgs.maven
            pkgs.jdk11
          ];
        };
      }
    );
}

As far as I can tell, packaging it requires telling Nix about the dependencies somehow (it's a Maven project), and I'm not entirely sure how to do that. I've consulted the Nixpkgs manual page here but it notes that mvn2nix is unmaintained, so I'm not sure that that's the best way to go about it. Any help is appreciated!

They also provide a precompiled Debian package here, but would be nice to have Nix build it from source.

tomodachi94 commented 1 week ago

If you're still interested in tackling this, we have a maven.buildMavenPackage which should make this fairly simple to package: https://nixos.org/manual/nixpkgs/unstable/#maven-buildmavenpackage