summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/editors/sigil
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2014-10-07 18:51:25 +0400
committerMichael Raskin <7c6f434c@mail.ru>2014-10-07 18:51:33 +0400
commitff371b96dff876166bd46eb14161621a1637a98e (patch)
tree81b531872c5f6f1c2351ba278a2713fe0fef796c /pkgs/applications/editors/sigil
parentbfa942c9bfd8a5454dbea711e7a68fa6d2e72ba9 (diff)
A sigil cleanup
Diffstat (limited to 'pkgs/applications/editors/sigil')
-rw-r--r--pkgs/applications/editors/sigil/default.nix11
1 files changed, 4 insertions, 7 deletions
diff --git a/pkgs/applications/editors/sigil/default.nix b/pkgs/applications/editors/sigil/default.nix
index 3cbbc6d6b35b..516377f0996e 100644
--- a/pkgs/applications/editors/sigil/default.nix
+++ b/pkgs/applications/editors/sigil/default.nix
@@ -3,15 +3,15 @@
}:
let
- the_version = "0.7.4";
+ version = "0.7.4";
in
stdenv.mkDerivation rec {
- name = "sigil-${the_version}";
+ name = "sigil-${version}";
src = fetchurl {
- url = "https://sigil.googlecode.com/files/Sigil-${the_version}-Code.zip";
+ url = "https://sigil.googlecode.com/files/Sigil-${version}-Code.zip";
sha256 = "68c7ca15ea8611921af0c435369563f55c6afd2ef1fb0945cf6c4a47429b0fb5";
};
@@ -47,16 +47,12 @@ stdenv.mkDerivation rec {
sed -i \
-e 's|\(COMMAND\) \([^ ]\+\) \([^ ]\+\) \(.*\)|\1 \2 \3 -c \4|' \
cmake_extras/CustomPCH.cmake
-# sed -i \
-# -e 's|\(COMMAND\) \([^ ]\+\) \([^ ]\+\) \(.*\)|\1 \2 \3 -x c++-header \4|' \
-# cmake_extras/CustomPCH.cmake
cd ../build
cmake -G "Unix Makefiles" \
-DCMAKE_INSTALL_PREFIX=$out \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_BUILD_RPATH=ON \
../src
- #make VERBOSE=1
make
make install
'';
@@ -65,5 +61,6 @@ stdenv.mkDerivation rec {
description = "Free, open source, multi-platform ebook (ePub) editor";
homepage = https://code.google.com/p/sigil/;
license = stdenv.lib.licenses.gpl3;
+ inherit version;
};
}