about summary refs log tree commit diff
path: root/pkgs/by-name/nt/ntfs2btrfs/package.nix
blob: f3f5e00f9f06cfc865f52b7eb7dd0adcea340245 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, stdenv, fetchFromGitHub, cmake, fmt, lzo, pkg-config, zlib, zstd }:

stdenv.mkDerivation rec {
  pname = "ntfs2btrfs";
  version = "20240115";

  src = fetchFromGitHub {
    owner = "maharmstone";
    repo = "ntfs2btrfs";
    rev = "refs/tags/${version}";
    hash = "sha256-sZ8AWREe2jasy3hqLTjaLcOMCNsrDjz2eIuknA2TsEs=";
  };

  nativeBuildInputs = [ cmake pkg-config ];

  buildInputs = [ fmt lzo zlib zstd ];

  meta = {
    description = "CLI tool which does in-place conversion of Microsoft's NTFS filesystem to the open-source filesystem Btrfs";
    homepage = "https://github.com/maharmstone/ntfs2btrfs";
    license = with lib.licenses; [ gpl2Only ];
    maintainers = with lib.maintainers; [ j1nxie ];
    mainProgram = "ntfs2btrfs";
    platforms = lib.platforms.linux;
  };
}