2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2015-07-09 15:23:25 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "shhopt-1.1.7";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2020-01-22 11:26:22 +01:00
|
|
|
url = "https://shh.thathost.com/pub-unix/files/${name}.tar.gz";
|
2015-07-09 15:23:25 +02:00
|
|
|
sha256 = "0yd6bl6qw675sxa81nxw6plhpjf9d2ywlm8a5z66zyjf28sl7sds";
|
|
|
|
};
|
|
|
|
|
2021-03-12 07:03:03 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile --replace "gcc" "${stdenv.cc.targetPrefix}cc"
|
|
|
|
'';
|
|
|
|
|
2019-11-05 02:10:31 +01:00
|
|
|
installFlags = [ "INSTBASEDIR=$(out)" ];
|
2015-07-09 15:23:25 +02:00
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2015-07-09 15:23:25 +02:00
|
|
|
description = "A library for parsing command line options";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://shh.thathost.com/pub-unix/";
|
2015-07-09 15:23:25 +02:00
|
|
|
license = licenses.artistic1;
|
2021-03-12 07:03:03 +01:00
|
|
|
platforms = platforms.all;
|
2015-07-09 15:23:25 +02:00
|
|
|
};
|
|
|
|
}
|