Skip to content

Instantly share code, notes, and snippets.

@AcouBass
Last active August 20, 2016 18:02
Show Gist options
  • Save AcouBass/79f27774e398d1f9f500fc23c71d03be to your computer and use it in GitHub Desktop.
Save AcouBass/79f27774e398d1f9f500fc23c71d03be to your computer and use it in GitHub Desktop.
files for packaging crane gps watch in NixOS
source $stdenv/setup
PATH=$PATH
unpackFile $src
cd crane_gps_watch
./configure --prefix=$out
make
make install
{ stdenv, fetchgit, unzip, libxml2 }:
stdenv.mkDerivation rec {
name = "crane-gps-watch";
builder = ./builder.sh;
src = fetchgit {
url = "https://github.com/mru00/crane_gps_watch.git";
sha256 = "0ji50yg85a114pdvw8k5jgfxq312frlxq67bazfaws9mkhnkpi9v";
};
}
[eddie@nixlaptop:~/nixpkgs]$ nix-build -A crane-gps-watch
these derivations will be built:
/nix/store/7vlcvbx9qb9xbfgrwfyvl0npnkjhj87p-crane-gps-watch.drv
building path(s) ‘/nix/store/qm5l27szrhlqg5ayb721yxpgp79rcy7a-crane-gps-watch’
unpacking source archive /nix/store/j5agrlhld0xwpd8rl67aj1dypmbrf6f0-crane_gps_watch
./configure: line 1912: config.log: Permission denied
./configure: line 1922: config.log: Permission denied
builder for ‘/nix/store/7vlcvbx9qb9xbfgrwfyvl0npnkjhj87p-crane-gps-watch.drv’ failed with exit code 1
error: build of ‘/nix/store/7vlcvbx9qb9xbfgrwfyvl0npnkjhj87p-crane-gps-watch.drv’ failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment