diff options
author | AbigailBuccaneer <AbigailBuccaneer@users.noreply.github.com> | 2016-10-24 17:17:35 +0100 |
---|---|---|
committer | AbigailBuccaneer <AbigailBuccaneer@users.noreply.github.com> | 2016-10-24 18:23:26 +0100 |
commit | 1983181a7fecf0666ae13e335a256287058e8d9f (patch) | |
tree | 16e60ff4ec822faeeccf901c858573e858be4674 /pkgs/development/libraries/bootil | |
parent | 3d5630fac9c918ea66e230a779e3d968750a3cf1 (diff) | |
download | nixlib-1983181a7fecf0666ae13e335a256287058e8d9f.tar nixlib-1983181a7fecf0666ae13e335a256287058e8d9f.tar.gz nixlib-1983181a7fecf0666ae13e335a256287058e8d9f.tar.bz2 nixlib-1983181a7fecf0666ae13e335a256287058e8d9f.tar.lz nixlib-1983181a7fecf0666ae13e335a256287058e8d9f.tar.xz nixlib-1983181a7fecf0666ae13e335a256287058e8d9f.tar.zst nixlib-1983181a7fecf0666ae13e335a256287058e8d9f.zip |
bootil: init at HEAD
Diffstat (limited to 'pkgs/development/libraries/bootil')
-rw-r--r-- | pkgs/development/libraries/bootil/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/libraries/bootil/default.nix b/pkgs/development/libraries/bootil/default.nix new file mode 100644 index 000000000000..727c6bfc4f3f --- /dev/null +++ b/pkgs/development/libraries/bootil/default.nix @@ -0,0 +1,43 @@ +{ stdenv, fetchFromGitHub, fetchpatch, premake4 }: + +stdenv.mkDerivation rec { + name = "bootil-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 = stdenv.lib.licenses.free; + maintainers = [ stdenv.lib.maintainers.abigailbuccaneer ]; + platforms = stdenv.lib.platforms.all; + }; + + src = fetchFromGitHub { + owner = "garrynewman"; + repo = "bootil"; + rev = "1d3e321fc2be359e2350205b8c7f1cad2164ee0b"; + sha256 = "03wq526r80l2px797hd0n5m224a6jibwipcbsvps6l9h740xabzg"; + }; + + patches = [ (fetchpatch { + url = https://github.com/garrynewman/bootil/pull/22.patch; + name = "github-pull-request-22.patch"; + sha256 = "1qf8wkv00pb9w1aa0dl89c8gm4rmzkxfl7hidj4gz0wpy7a24qa2"; + })]; + + platform = + if stdenv.isLinux then "linux" + else if stdenv.isDarwin then "macosx" + else abort "unrecognized platform"; + + buildInputs = [ premake4 ]; + + configurePhase = "premake4 --file=projects/premake4.lua gmake"; + makeFlags = "-C projects/${platform}/gmake"; + + installPhase = '' + mkdir -p $out/lib + cp lib/${platform}/gmake/libbootil_static.a $out/lib/ + cp -r include $out/ + ''; +} |