nixpkgs/pkgs/development/libraries/shhopt/default.nix

25 lines
625 B
Nix
Raw Normal View History

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