btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / cr / cromfs / package.nix
blobf3bacd2c40fa1d91bd9b63fa9e4420ac0e48c8d7
1 { lib, stdenv, fetchurl, pkg-config, fuse, perl }:
3 stdenv.mkDerivation rec {
4   pname = "cromfs";
5   version = "1.5.10.2";
7   src = fetchurl {
8     url = "https://bisqwit.iki.fi/src/arch/cromfs-${version}.tar.bz2";
9     sha256 = "0xy2x1ws1qqfp7hfj6yzm80zhrxzmhn0w2yns77im1lmd2h18817";
10   };
12   postPatch = "patchShebangs configure";
14   installPhase = ''
15     install -d $out/bin
16     install cromfs-driver $out/bin
17     install util/cvcromfs $out/bin
18     install util/mkcromfs $out/bin
19     install util/unmkcromfs $out/bin
20   '';
22   nativeBuildInputs = [ pkg-config ];
23   buildInputs = [ fuse perl ];
25   makeFlags = [ "CXXFLAGS=-std=c++03" ];
27   meta = with lib; {
28     description = "FUSE Compressed ROM filesystem with lzma";
29     homepage = "https://bisqwit.iki.fi/source/cromfs.html";
30     license = licenses.gpl3;
31     maintainers = [ ];
32     platforms = platforms.linux;
33   };