diff --git a/pkgs/tools/misc/xcp/default.nix b/pkgs/tools/misc/xcp/default.nix new file mode 100644 index 00000000000..907e39a3f27 --- /dev/null +++ b/pkgs/tools/misc/xcp/default.nix @@ -0,0 +1,25 @@ +{ rustPlatform, fetchFromGitHub, lib }: + +rustPlatform.buildRustPackage rec { + pname = "xcp"; + version = "0.9.0"; + + src = fetchFromGitHub { + owner = "tarka"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-Kwt1qLuP63bIn0VY3oFEcbKh1GGBdObfOmtPV4DMQUU="; + }; + + # no such file or directory errors + doCheck = false; + + cargoSha256 = "sha256-wFOXRQSOfmGB6Zmkqn7KoK+vyHeFKyGNx7Zf2zzPcE4="; + + meta = with lib; { + description = "An extended cp(1)"; + homepage = "https://github.com/tarka/xcp"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ legendofmiracles ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3bab2eae8da..e8544f7fb0a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -31298,6 +31298,8 @@ in zsnes = pkgsi686Linux.callPackage ../misc/emulators/zsnes { }; + xcp = callPackage ../tools/misc/xcp { }; + xcpc = callPackage ../misc/emulators/xcpc { }; zxcvbn-c = callPackage ../development/libraries/zxcvbn-c { };