2022-07-06 03:31:09 +00:00
|
|
|
{ lib, stdenv, fetchgit, libsForQt5 }:
|
|
|
|
|
treewide: noop: refer to `src.name` or similar where appropriate, part 3: more use cases
This continues where d8f7f6a5cee067b81bfaaa3aa079adb94ed7c01e left off. Similarly
to that commit, this commit this also points `sourceRoot`s to `src.name` and similar
instead of keeping hardcoded names, and edits other derivation attrs do do the same,
where appropriate.
Also, similarly to d8f7f6a5cee067b81bfaaa3aa079adb94ed7c01e some of expressions this
edits use `srcs` attribute with customly-named sources, so they have to be moved
into `let` blocks to keep evaluation efficient (the other, worse, way to do this
would to recurcively refer to `elemAt n finalAttrs.srcs` or, similarly, with `rec`).
2023-08-08 17:18:01 +00:00
|
|
|
let
|
|
|
|
version = "3.1.0";
|
|
|
|
|
|
|
|
main_src = fetchgit {
|
|
|
|
url = "https://www.opencode.net/dfn2/ocs-url.git";
|
|
|
|
rev = "release-${version}";
|
|
|
|
sha256 = "RvbkcSj8iUAHAEOyETwfH+3XnCCY/p8XM8LgVrZxrws=";
|
|
|
|
};
|
|
|
|
|
|
|
|
qtil_src = fetchgit {
|
|
|
|
url = "https://github.com/akiraohgaki/qtil";
|
|
|
|
rev = "v0.4.0";
|
|
|
|
sha256 = "XRSp0F7ggfkof1RNAnQU3+O9DcXDy81VR7NakITOXrw=";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
|
2022-07-06 03:31:09 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2023-01-28 04:20:00 +00:00
|
|
|
pname = "ocs-url";
|
treewide: noop: refer to `src.name` or similar where appropriate, part 3: more use cases
This continues where d8f7f6a5cee067b81bfaaa3aa079adb94ed7c01e left off. Similarly
to that commit, this commit this also points `sourceRoot`s to `src.name` and similar
instead of keeping hardcoded names, and edits other derivation attrs do do the same,
where appropriate.
Also, similarly to d8f7f6a5cee067b81bfaaa3aa079adb94ed7c01e some of expressions this
edits use `srcs` attribute with customly-named sources, so they have to be moved
into `let` blocks to keep evaluation efficient (the other, worse, way to do this
would to recurcively refer to `elemAt n finalAttrs.srcs` or, similarly, with `rec`).
2023-08-08 17:18:01 +00:00
|
|
|
inherit version;
|
2022-07-06 03:31:09 +00:00
|
|
|
|
treewide: noop: refer to `src.name` or similar where appropriate, part 3: more use cases
This continues where d8f7f6a5cee067b81bfaaa3aa079adb94ed7c01e left off. Similarly
to that commit, this commit this also points `sourceRoot`s to `src.name` and similar
instead of keeping hardcoded names, and edits other derivation attrs do do the same,
where appropriate.
Also, similarly to d8f7f6a5cee067b81bfaaa3aa079adb94ed7c01e some of expressions this
edits use `srcs` attribute with customly-named sources, so they have to be moved
into `let` blocks to keep evaluation efficient (the other, worse, way to do this
would to recurcively refer to `elemAt n finalAttrs.srcs` or, similarly, with `rec`).
2023-08-08 17:18:01 +00:00
|
|
|
srcs = [ main_src qtil_src ];
|
|
|
|
sourceRoot = main_src.name;
|
2022-07-06 03:31:09 +00:00
|
|
|
|
treewide: noop: refer to `src.name` or similar where appropriate, part 3: more use cases
This continues where d8f7f6a5cee067b81bfaaa3aa079adb94ed7c01e left off. Similarly
to that commit, this commit this also points `sourceRoot`s to `src.name` and similar
instead of keeping hardcoded names, and edits other derivation attrs do do the same,
where appropriate.
Also, similarly to d8f7f6a5cee067b81bfaaa3aa079adb94ed7c01e some of expressions this
edits use `srcs` attribute with customly-named sources, so they have to be moved
into `let` blocks to keep evaluation efficient (the other, worse, way to do this
would to recurcively refer to `elemAt n finalAttrs.srcs` or, similarly, with `rec`).
2023-08-08 17:18:01 +00:00
|
|
|
# We are NOT in $sourceRoot here
|
|
|
|
postUnpack = ''
|
|
|
|
mkdir -p $sourceRoot/lib/qtil
|
|
|
|
cp -r ${qtil_src.name}/* $sourceRoot/lib/qtil/
|
|
|
|
'';
|
2022-07-06 03:31:09 +00:00
|
|
|
|
|
|
|
buildInputs = with libsForQt5.qt5; [
|
|
|
|
qtbase
|
|
|
|
qtsvg
|
|
|
|
qtquickcontrols
|
|
|
|
qmake
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Open Collaboration System for use with DE store websites";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ SohamG ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|