Merge pull request #133152 from polykernel/foot-patch-1

foot: refactor derivation
This commit is contained in:
Sandro 2021-08-08 18:24:58 +02:00 committed by GitHub
commit bffd3d0add
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
{ stdenv
, lib
, fetchzip
, fetchFromGitea
, fetchurl
, fetchpatch
, runCommandNoCC
@ -94,8 +94,11 @@ stdenv.mkDerivation rec {
pname = "foot";
inherit version;
src = fetchzip {
url = "https://codeberg.org/dnkl/${pname}/archive/${version}.tar.gz";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "dnkl";
repo = pname;
rev = version;
sha256 = "1k0alz991cslls4926c5gq02pdq0vfw9jfpprh2a1vb59xgikv7h";
};
@ -147,8 +150,9 @@ stdenv.mkDerivation rec {
export AR="${ar}"
'';
mesonBuildType = "release";
mesonFlags = [
"--buildtype=release"
"-Db_lto=true"
"-Dterminfo-install-location=${placeholder "terminfo"}/share/terminfo"
];