mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 04:53:27 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
35 lines
870 B
Nix
35 lines
870 B
Nix
{ lib, stdenv, fetchurl, pkg-config, fuse, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cromfs";
|
|
version = "1.5.10.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://bisqwit.iki.fi/src/arch/cromfs-${version}.tar.bz2";
|
|
sha256 = "0xy2x1ws1qqfp7hfj6yzm80zhrxzmhn0w2yns77im1lmd2h18817";
|
|
};
|
|
|
|
postPatch = "patchShebangs configure";
|
|
|
|
installPhase = ''
|
|
install -d $out/bin
|
|
install cromfs-driver $out/bin
|
|
install util/cvcromfs $out/bin
|
|
install util/mkcromfs $out/bin
|
|
install util/unmkcromfs $out/bin
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ fuse perl ];
|
|
|
|
makeFlags = [ "CXXFLAGS=-std=c++03" ];
|
|
|
|
meta = with lib; {
|
|
description = "FUSE Compressed ROM filesystem with lzma";
|
|
homepage = "https://bisqwit.iki.fi/source/cromfs.html";
|
|
license = licenses.gpl3;
|
|
maintainers = [ ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|