Commit 29748857 authored by eljamm's avatar eljamm
Browse files

naja: 0-unstable-2025-01-13 -> 0.1.16

Also:
- use finalAttrs
- add update script
parent 311aa5d9
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -12,16 +12,17 @@
  python3,
  tbb_2021_11,
  buildPackages,
  nix-update-script,
}:
stdenv.mkDerivation {
stdenv.mkDerivation (finalAttrs: {
  pname = "naja";
  version = "0-unstable-2025-01-13";
  version = "0.1.16";

  src = fetchFromGitHub {
    owner = "najaeda";
    repo = "naja";
    rev = "ffc29daa22e02565b2a0a108f8e65236cdee413a";
    hash = "sha256-XGlgSUHSpHxNrms50pOQ9eoGZ6y79Rbm/sDYW2C4qsg=";
    tag = "v${finalAttrs.version}";
    hash = "sha256-MwMpxmmr8fJN49RkRguiEEwPVUIm+OcNFjEixpjn9UY=";
    fetchSubmodules = true;
  };

@@ -74,12 +75,14 @@ stdenv.mkDerivation {
    (lib.cmakeFeature "CAPNPC_CXX_EXECUTABLE" (lib.getExe' buildPackages.capnproto "capnpc-c++"))
  ];

  doCheck = true;

  postInstall = ''
    moveToOutput lib/libnaja_bne.so $lib
  '';

  doCheck = true;

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Structural Netlist API (and more) for EDA post synthesis flow development";
    homepage = "https://github.com/najaeda/naja";
@@ -88,4 +91,4 @@ stdenv.mkDerivation {
    mainProgram = "naja_edit";
    platforms = lib.platforms.all;
  };
}
})