treewide: use `addBinToPathHook`, minor cleanups (#379187)
[NixPkgs.git] / pkgs / by-name / cr / cromfs / package.nix
blob99e9dff260cccfbb52a4d22fa890562fedd1685b
2   lib,
3   stdenv,
4   fetchurl,
5   pkg-config,
6   fuse,
7   perl,
8 }:
10 stdenv.mkDerivation rec {
11   pname = "cromfs";
12   version = "1.5.10.2";
14   src = fetchurl {
15     url = "https://bisqwit.iki.fi/src/arch/cromfs-${version}.tar.bz2";
16     sha256 = "0xy2x1ws1qqfp7hfj6yzm80zhrxzmhn0w2yns77im1lmd2h18817";
17   };
19   postPatch = "patchShebangs configure";
21   installPhase = ''
22     install -d $out/bin
23     install cromfs-driver $out/bin
24     install util/cvcromfs $out/bin
25     install util/mkcromfs $out/bin
26     install util/unmkcromfs $out/bin
27   '';
29   nativeBuildInputs = [ pkg-config ];
30   buildInputs = [
31     fuse
32     perl
33   ];
35   makeFlags = [ "CXXFLAGS=-std=c++03" ];
37   meta = with lib; {
38     description = "FUSE Compressed ROM filesystem with lzma";
39     homepage = "https://bisqwit.iki.fi/source/cromfs.html";
40     license = licenses.gpl3;
41     maintainers = [ ];
42     platforms = platforms.linux;
43   };