diff --git a/pkgs/tools/filesystems/genromfs/default.nix b/pkgs/tools/filesystems/genromfs/default.nix new file mode 100644 index 000000000000..db1968fccdcf --- /dev/null +++ b/pkgs/tools/filesystems/genromfs/default.nix @@ -0,0 +1,23 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + version = "0.5.2"; + name = "genromfs-${version}"; + + src = fetchurl { + url = "mirror://sourceforge/romfs/genromfs/${version}/${name}.tar.gz"; + sha256 = "0q6rpq7cmclmb4ayfyknvzbqysxs4fy8aiahlax1sb2p6k3pzwrh"; + }; + + postPatch = '' + substituteInPlace Makefile --replace "prefix = /usr" "prefix = $out" + ''; + + meta = with stdenv.lib; { + homepage = "http://romfs.sourceforge.net/"; + description = "Tool for creating romfs file system images"; + license = licenses.gpl2; + maintainers = with maintainers; [ pxc ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fe654a12f79a..a1fc1bc43362 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -759,6 +759,8 @@ in gencfsm = callPackage ../tools/security/gencfsm { }; + genromfs = callPackage ../tools/filesystems/genromfs { }; + gist = callPackage ../tools/text/gist { }; gmic = callPackage ../tools/graphics/gmic { };