diff options
author | Lluís Batlle i Rossell <viric@viric.name> | 2012-11-28 11:25:08 +0100 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@viric.name> | 2012-11-28 11:40:18 +0100 |
commit | 66e980ba318ae5c081e46f0d0876da0bb4bf2141 (patch) | |
tree | befe337ca8dc39362233c7dcaf6fea1c3aa1ea8c /pkgs/applications/misc/librecad | |
parent | 5a6e4e5d3f6ccfe6a908465397f77e52cbc645d3 (diff) | |
download | nixpkgs-66e980ba318ae5c081e46f0d0876da0bb4bf2141.tar nixpkgs-66e980ba318ae5c081e46f0d0876da0bb4bf2141.tar.gz nixpkgs-66e980ba318ae5c081e46f0d0876da0bb4bf2141.tar.bz2 nixpkgs-66e980ba318ae5c081e46f0d0876da0bb4bf2141.tar.lz nixpkgs-66e980ba318ae5c081e46f0d0876da0bb4bf2141.tar.xz nixpkgs-66e980ba318ae5c081e46f0d0876da0bb4bf2141.tar.zst nixpkgs-66e980ba318ae5c081e46f0d0876da0bb4bf2141.zip |
librecad: updating to 1.0.2, and making it install
The expression was unfinished, not installing anything.
Diffstat (limited to 'pkgs/applications/misc/librecad')
-rw-r--r-- | pkgs/applications/misc/librecad/default.nix | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/pkgs/applications/misc/librecad/default.nix b/pkgs/applications/misc/librecad/default.nix index bcf0f1aee79..59bd4888e4a 100644 --- a/pkgs/applications/misc/librecad/default.nix +++ b/pkgs/applications/misc/librecad/default.nix @@ -1,28 +1,34 @@ -{ stdenv, fetchurl, qt4}: +{ stdenv, fetchurl, qt4, muparser, which}: stdenv.mkDerivation { - name = "librecad-1.0.0"; + name = "librecad-1.0.2"; src = fetchurl { - url = https://github.com/LibreCAD/LibreCAD/tarball/v1.0.0; - name = "librecad-1.0.0.tar.gz"; - sha256 = "0s1ikyvy98zz1vw3xf5la73n3sykib6292cmhh2z738ggwigicc9"; + url = https://github.com/LibreCAD/LibreCAD/tarball/v1.0.2; + name = "librecad-1.0.2.tar.gz"; + sha256 = "13ee7e401e4f5fbc68c2e017b7189bec788038f4f6e77f559861ceb8cfb1907d"; }; patchPhase = '' sed -i -e s,/bin/bash,`type -P bash`, scripts/postprocess-unix.sh + sed -i -e s,/usr/share,$out/share, src/lib/engine/rs_system.cpp ''; configurePhase = "qmake PREFIX=$out"; - # It builds, but it does not install - installPhase = "exit 1"; + installPhase = '' + ensureDir $out/bin $out/share + cp -R unix/librecad $out/bin + cp -R unix/resources $out/share/librecad + ''; - buildInputs = [ qt4 ]; + buildInputs = [ qt4 muparser which ]; meta = { description = "A 2D CAD package based upon Qt"; homepage = http://librecad.org; license = "GPLv2"; + maintainers = with stdenv.lib.maintainers; [viric]; + platforms = with stdenv.lib.platforms; linux; }; } |