mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
nawk: 20220122 -> 20230909
This commit is contained in:
parent
b37283985b
commit
612fd13a45
@ -1,18 +1,18 @@
|
||||
{ lib, stdenv, fetchFromGitHub, bison, buildPackages }:
|
||||
{ lib, stdenv, fetchFromGitHub, bison, buildPackages, installShellFiles }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "nawk";
|
||||
version = "20220122";
|
||||
version = "20230909";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "onetrueawk";
|
||||
repo = "awk";
|
||||
rev = version;
|
||||
hash = "sha256-W5WkGk4WY3g1qSFjJxFBa8KY1k13oK6WAMg5GH6kKU4=";
|
||||
hash = "sha256-sBJ+ToFkhU5Ei84nqzbS0bUbsa+60iLSz2oeV5+PXEk=";
|
||||
};
|
||||
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
nativeBuildInputs = [ bison ];
|
||||
nativeBuildInputs = [ bison installShellFiles ];
|
||||
makeFlags = [
|
||||
"CC=${stdenv.cc.targetPrefix}cc"
|
||||
"HOSTCC=${if stdenv.buildPlatform.isDarwin then "clang" else "cc"}"
|
||||
@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dm755 a.out "$out/bin/nawk"
|
||||
install -Dm644 awk.1 "$out/share/man/man1/nawk.1"
|
||||
installManPage awk.1
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user