2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "shhopt";
|
|
|
|
version = "1.1.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-07-21 07:28:18 +00:00
|
|
|
url = "https://shh.thathost.com/pub-unix/files/${pname}-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "0yd6bl6qw675sxa81nxw6plhpjf9d2ywlm8a5z66zyjf28sl7sds";
|
|
|
|
};
|
|
|
|
|
2021-03-15 08:37:03 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile --replace "gcc" "${stdenv.cc.targetPrefix}cc"
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
installFlags = [ "INSTBASEDIR=$(out)" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A library for parsing command line options";
|
|
|
|
homepage = "https://shh.thathost.com/pub-unix/";
|
|
|
|
license = licenses.artistic1;
|
2021-03-15 08:37:03 +00:00
|
|
|
platforms = platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|