deadpixi-sam-unstable: 2017-10-27 -> 2020-07-14

This commit is contained in:
Ben Siraphob 2021-12-26 11:51:23 +07:00
parent afcfcec41a
commit 10bca26212
No known key found for this signature in database
GPG Key ID: 45F0E5D788143267

View File

@ -1,20 +1,20 @@
{ lib, stdenv, fetchFromGitHub, freetype, libX11, libXi, libXt, libXft }:
stdenv.mkDerivation rec {
version = "2017-10-27";
pname = "deadpixi-sam-unstable";
version = "2020-07-14";
src = fetchFromGitHub {
owner = "deadpixi";
repo = "sam";
rev = "51693780fb1457913389db6634163998f9b775b8";
sha256 = "0nfkj93j4bgli4ixbk041nwi14rabk04kqg8krq4mj0044m1qywr";
rev = "5d8acb35d78c327d76f00a54857cbd566ed9bc11";
sha256 = "sha256-+vRh6nDPc3UnmEdqROHRel5Te0h5m4eiaERs492xciQ=";
};
postPatch = ''
substituteInPlace config.mk.def \
--replace "/usr/include/freetype2" "${freetype.dev}/include/freetype2" \
--replace "CC=gcc" ""
--replace "CC=gcc" "CC=${stdenv.cc.targetPrefix}cc"
'';
CFLAGS = "-D_DARWIN_C_SOURCE";
@ -27,10 +27,10 @@ stdenv.mkDerivation rec {
'';
meta = with lib; {
inherit (src.meta) homepage;
homepage = "https://github.com/deadpixi/sam";
description = "Updated version of the sam text editor";
license = with licenses; lpl-102;
license = licenses.lpl-102;
maintainers = with maintainers; [ ramkromberg ];
platforms = with platforms; unix;
platforms = platforms.unix;
};
}