about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/filesystems/genromfs/default.nix
blob: 4adf124d529ff9e3bfdae3bf59f8a0c74437a398 (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
{ stdenv, fetchurl }:

stdenv.mkDerivation rec {
  version = "0.5.2";
  pname = "genromfs";

  src = fetchurl {
    url = "mirror://sourceforge/romfs/genromfs/${version}/${pname}-${version}.tar.gz";
    sha256 = "0q6rpq7cmclmb4ayfyknvzbqysxs4fy8aiahlax1sb2p6k3pzwrh";
  };

  postPatch = ''
    substituteInPlace Makefile \
      --replace "prefix = /usr" "prefix = $out" \
      --replace "gcc" "cc"
  '';

  meta = with stdenv.lib; {
    homepage = "http://romfs.sourceforge.net/";
    description = "Tool for creating romfs file system images";
    license = licenses.gpl2;
    maintainers = with maintainers; [ ];
    platforms = platforms.all;
  };
}