Created
December 1, 2016 20:04
-
-
Save savannidgerinel/3a146b9b763a98518e9de6bd9b32fd81 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs ? import <nixpkgs> {}, | |
stdenv ? pkgs.stdenv }: | |
let | |
packageName = "libsysconfcpus-0.5.tar.gz"; | |
packageUri = "http://www.kev.pulo.com.au/libsysconfcpus/files/libsysconfcpus-0.5.tar.gz"; | |
checksum = "f438d4068fdc4377dae210fa1f06c74ae248795cd053f974445e1d4025903036"; | |
in stdenv.mkDerivation rec { | |
name = "sysconfcpus-${version}"; | |
version = "0.5"; | |
src = pkgs.fetchurl { | |
url = packageUri; | |
sha256 = checksum; | |
name = packageName; | |
}; | |
buildCommand = '' | |
mkdir -p $out/sysconfcpus | |
tar -xzf $src | |
cd libsysconfcpus-0.5 | |
./configure --prefix=$out/sysconfcpus | |
make && make install | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment