From c58f383168bdde112ae81de506e77379bae4718a Mon Sep 17 00:00:00 2001 From: reo101 Date: Mon, 17 Apr 2023 14:51:03 +0300 Subject: [PATCH] feat(advcp): add package --- pkgs/advcp/default.nix | 24 ++++++++++++++++++++++++ pkgs/default.nix | 1 + 2 files changed, 25 insertions(+) create mode 100644 pkgs/advcp/default.nix diff --git a/pkgs/advcp/default.nix b/pkgs/advcp/default.nix new file mode 100644 index 0000000..60d402b --- /dev/null +++ b/pkgs/advcp/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchurl, fetchpatch, upstream ? "coreutils" }: + +stdenv.mkDerivation rec { + name = "advcp"; + version = "9.1"; + + src = fetchurl { + name = "source-${name}-${version}.tar.xz"; + url = "ftp://ftp.gnu.org/gnu/${upstream}/${upstream}-${version}.tar.xz"; + hash = "sha256-YaH0ENeLp+fzelpPUObRMgrKMzdUhKMlXt3xejhYBCM="; + }; + + patches = [ + (fetchpatch { + url = "https://raw.githubusercontent.com/jarun/advcpmv/ea268d870b475edd5960dcd55d5378abc9705958/advcpmv-0.9-${version}.patch"; + hash = "sha256-d+SRT/R4xmfHLAdOr7m4R3WFiW64P5ZH6iqDvErYCyg="; + }) + ]; + + installPhase = '' + install -D src/cp $out/bin/advcp + install -D src/mv $out/bin/advmv + ''; +} diff --git a/pkgs/default.nix b/pkgs/default.nix index aed2d99..08ab7a4 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -5,6 +5,7 @@ , ... }: { # example = pkgs.callPackage ./example { }; + advcp = pkgs.callPackage ./advcp { }; fennel-language-server = pkgs.callPackage ./fennel-language-server { }; parinfer-rust = pkgs.callPackage ./parinfer-rust { }; swww = pkgs.callPackage ./swww { };