mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-13 22:57:40 +00:00
altermime: fix darwin build
This commit is contained in:
parent
bfde7b6b8d
commit
28a16d05aa
@ -1,12 +1,11 @@
|
||||
{ lib, stdenv, fetchurl }:
|
||||
{ lib, gccStdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
baseName = "altermime";
|
||||
name = "${baseName}-${version}";
|
||||
gccStdenv.mkDerivation rec {
|
||||
pname = "altermime";
|
||||
version = "0.3.11";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://pldaniels.com/${baseName}/${name}.tar.gz";
|
||||
url = "https://pldaniels.com/${pname}/${pname}-${version}.tar.gz";
|
||||
sha256 = "15zxg6spcmd35r6xbidq2fgcg2nzyv1sbbqds08lzll70mqx4pj7";
|
||||
};
|
||||
|
||||
@ -19,14 +18,14 @@ stdenv.mkDerivation rec {
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i Makefile -e "s@/usr/local@$out@"
|
||||
mkdir -p "$out/bin"
|
||||
mkdir -p $out/bin
|
||||
substituteInPlace Makefile --replace "/usr/local" "$out"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "MIME alteration tool";
|
||||
maintainers = [ maintainers.raskin ];
|
||||
platforms = platforms.linux;
|
||||
platforms = platforms.all;
|
||||
license.fullName = "alterMIME LICENSE";
|
||||
downloadPage = "https://pldaniels.com/altermime/";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user