commit 613dba8dfae1de9e8b9dfcf2440e755f61ffc618
parent 2958db2ae9740d269c40353d945410bd94d9c3a0
Author: Tomas Hlavaty <tom@logand.com>
Date: Sun, 5 Jul 2015 14:40:17 +0200
nix build
Diffstat:
3 files changed, 28 insertions(+), 12 deletions(-)
diff --git a/default.nix b/default.nix
@@ -1,14 +1,24 @@
-with import <nixpkgs> {}; {
- giServerEnv = stdenv.mkDerivation {
- name = "gi-server-env";
- buildInputs = [
- pkgs.pkgconfig
- pkgs.gobjectIntrospection
- ];
- GI_TYPELIB_PATH =
- "${gtk3}/lib/girepository-1.0"
- + ":${pango}/lib/girepository-1.0"
- + ":${gdk_pixbuf}/lib/girepository-1.0"
- + ":${atk}/lib/girepository-1.0";
+{stdenv, fetchgit, pkgconfig, gobjectIntrospection, gtk3, pango, gdk_pixbuf, atk}:
+stdenv.mkDerivation rec {
+ name = "gi-server";
+
+ src = fetchgit {
+ #url = http://logand.com/git/gi-server.git;
+ url = file:///home/tomas/git/gi-server;
+ rev = "2958db2ae9740d269c40353d945410bd94d9c3a0";
+ sha256 = "1hyda242ryrmsvfk0w794fym2d7cvyflwdcirrlhrjl83id159kk";
};
+
+ buildInputs = [pkgconfig gobjectIntrospection gtk3 pango gdk_pixbuf atk];
+
+ GI_TYPELIB_PATH =
+ "${gtk3}/lib/girepository-1.0"
+ + ":${pango}/lib/girepository-1.0"
+ + ":${gdk_pixbuf}/lib/girepository-1.0"
+ + ":${atk}/lib/girepository-1.0";
+
+ installPhase = ''
+ mkdir -p $out/bin
+ cp ${name} $out/bin/${name}
+ '';
}
diff --git a/release.nix b/release.nix
@@ -0,0 +1,5 @@
+let
+ pkgs = import <nixpkgs> {};
+in {
+ gi-server = pkgs.callPackage ./. {};
+}
diff --git a/shell.nix b/shell.nix
@@ -0,0 +1 @@
+(import <nixpkgs> {}).callPackage ./. {}