bootil: format, switch to pname + version

This commit is contained in:
Sandro Jäckel 2021-03-05 03:20:18 +01:00
parent 62ce8c7309
commit 8cac1707f2
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -1,18 +1,8 @@
{ lib, stdenv, fetchFromGitHub, fetchpatch, premake4 }: { lib, stdenv, fetchFromGitHub, fetchpatch, premake4 }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "bootil-unstable-2015-12-17"; pname = "bootil";
version = "unstable-2015-12-17";
meta = {
description = "Garry Newman's personal utility library";
homepage = "https://github.com/garrynewman/bootil";
# License unsure - see https://github.com/garrynewman/bootil/issues/21
license = lib.licenses.free;
maintainers = [ lib.maintainers.abigailbuccaneer ];
platforms = lib.platforms.all;
# Build uses `-msse` and `-mfpmath=sse`
badPlatforms = [ "aarch64-linux" ];
};
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "garrynewman"; owner = "garrynewman";
@ -21,11 +11,13 @@ stdenv.mkDerivation {
sha256 = "03wq526r80l2px797hd0n5m224a6jibwipcbsvps6l9h740xabzg"; sha256 = "03wq526r80l2px797hd0n5m224a6jibwipcbsvps6l9h740xabzg";
}; };
patches = [ (fetchpatch { patches = [
url = "https://github.com/garrynewman/bootil/pull/22.patch"; (fetchpatch {
name = "github-pull-request-22.patch"; url = "https://github.com/garrynewman/bootil/pull/22.patch";
sha256 = "1qf8wkv00pb9w1aa0dl89c8gm4rmzkxfl7hidj4gz0wpy7a24qa2"; name = "github-pull-request-22.patch";
}) ]; sha256 = "1qf8wkv00pb9w1aa0dl89c8gm4rmzkxfl7hidj4gz0wpy7a24qa2";
})
];
# Avoid guessing where files end up. Just use current directory. # Avoid guessing where files end up. Just use current directory.
postPatch = '' postPatch = ''
@ -42,4 +34,15 @@ stdenv.mkDerivation {
install -D libbootil_static.a $out/lib/libbootil_static.a install -D libbootil_static.a $out/lib/libbootil_static.a
cp -r include $out cp -r include $out
''; '';
meta = with lib; {
description = "Garry Newman's personal utility library";
homepage = "https://github.com/garrynewman/bootil";
# License unsure - see https://github.com/garrynewman/bootil/issues/21
license = licenses.free;
maintainers = [ maintainers.abigailbuccaneer ];
platforms = platforms.all;
# Build uses `-msse` and `-mfpmath=sse`
badPlatforms = [ "aarch64-linux" ];
};
} }