itk-snap source and dependencies
This commit is contained in:
parent
b27bc85d98
commit
2a178c8dc5
3 changed files with 67 additions and 5 deletions
27
flake.lock
generated
Normal file
27
flake.lock
generated
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1769789167,
|
||||
"narHash": "sha256-kKB3bqYJU5nzYeIROI82Ef9VtTbu4uA3YydSk/Bioa8=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "62c8382960464ceb98ea593cb8321a2cf8f9e3e5",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
||||
15
flake.nix
15
flake.nix
|
|
@ -1,15 +1,20 @@
|
|||
{
|
||||
description = "A very basic flake";
|
||||
description = "itk-SNAP package";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs }: {
|
||||
outputs =
|
||||
{ self, nixpkgs }:
|
||||
let
|
||||
pkgs = import nixpkgs {config = {}; overlays = []; system = "x86_64-linux";};
|
||||
in
|
||||
{
|
||||
|
||||
packages.x86_64-linux.hello = nixpkgs.legacyPackages.x86_64-linux.hello;
|
||||
packages.x86_64-linux.itk-snap = pkgs.callPackage ./itk-snap.nix {};
|
||||
|
||||
packages.x86_64-linux.default = self.packages.x86_64-linux.hello;
|
||||
packages.x86_64-linux.default = self.packages.x86_64-linux.itk-snap;
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
30
itk-snap.nix
Normal file
30
itk-snap.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
cmake,
|
||||
itk,
|
||||
vtk,
|
||||
qt6,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "itk-snap";
|
||||
version = "v4.2.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pyushkevich";
|
||||
repo = "itksnap";
|
||||
rev = "v4.2.2";
|
||||
sha256 = "sha256-9aH6BVu7osDbXdUhgiMXOTQnvq96F5+f6gTCU975ZNw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
qt6.wrapQtAppsHook
|
||||
];
|
||||
buildInputs = [
|
||||
itk
|
||||
vtk
|
||||
qt6.qtbase
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue