mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
simulide: factor out sources
This commit is contained in:
parent
5f81b2812e
commit
a55e0fa92d
@ -12,9 +12,8 @@ let
|
|||||||
generic =
|
generic =
|
||||||
{ version
|
{ version
|
||||||
, release
|
, release
|
||||||
, branch
|
|
||||||
, rev
|
, rev
|
||||||
, sha256
|
, src
|
||||||
, extraPostPatch ? ""
|
, extraPostPatch ? ""
|
||||||
, extraBuildInputs ? [ ]
|
, extraBuildInputs ? [ ]
|
||||||
, iconPath ? "resources/icons/simulide.png"
|
, iconPath ? "resources/icons/simulide.png"
|
||||||
@ -26,11 +25,7 @@ let
|
|||||||
mkDerivation {
|
mkDerivation {
|
||||||
pname = "simulide";
|
pname = "simulide";
|
||||||
version = "${version}-${release}";
|
version = "${version}-${release}";
|
||||||
|
inherit src;
|
||||||
src = fetchbzr {
|
|
||||||
url = "https://code.launchpad.net/~arcachofo/simulide/${branch}";
|
|
||||||
inherit rev sha256;
|
|
||||||
};
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i resources/simulide.desktop \
|
sed -i resources/simulide.desktop \
|
||||||
@ -91,12 +86,16 @@ let
|
|||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
simulide_0_4_15 = generic {
|
simulide_0_4_15 = generic rec {
|
||||||
version = "0.4.15";
|
version = "0.4.15";
|
||||||
release = "SR10";
|
release = "SR10";
|
||||||
branch = "simulide_0.4.14"; # the branch name does not mach the version for some reason
|
|
||||||
rev = "291";
|
rev = "291";
|
||||||
sha256 = "sha256-BBoZr/S2pif0Jft5wrem8y00dXl08jq3kFiIUtOr3LM=";
|
src = fetchbzr {
|
||||||
|
# the branch name does not mach the version for some reason
|
||||||
|
url = "https://code.launchpad.net/~arcachofo/simulide/simulide_0.4.14";
|
||||||
|
sha256 = "sha256-BBoZr/S2pif0Jft5wrem8y00dXl08jq3kFiIUtOr3LM=";
|
||||||
|
inherit rev;
|
||||||
|
};
|
||||||
extraPostPatch = ''
|
extraPostPatch = ''
|
||||||
# GCC 13 needs the <cstdint> header explicitly included
|
# GCC 13 needs the <cstdint> header explicitly included
|
||||||
sed -i src/gpsim/value.h -e '1i #include <cstdint>'
|
sed -i src/gpsim/value.h -e '1i #include <cstdint>'
|
||||||
@ -110,20 +109,26 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
simulide_1_0_0 = generic {
|
simulide_1_0_0 = generic rec {
|
||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
release = "SR2";
|
release = "SR2";
|
||||||
branch = "1.0.0";
|
|
||||||
rev = "1449";
|
rev = "1449";
|
||||||
sha256 = "sha256-rJWZvnjVzaKXU2ktbde1w8LSNvu0jWkDIk4dq2l7t5g=";
|
src = fetchbzr {
|
||||||
|
url = "https://code.launchpad.net/~arcachofo/simulide/1.0.0";
|
||||||
|
sha256 = "sha256-rJWZvnjVzaKXU2ktbde1w8LSNvu0jWkDIk4dq2l7t5g=";
|
||||||
|
inherit rev;
|
||||||
|
};
|
||||||
extraBuildInputs = [ qtscript ];
|
extraBuildInputs = [ qtscript ];
|
||||||
};
|
};
|
||||||
|
|
||||||
simulide_1_1_0 = generic {
|
simulide_1_1_0 = generic rec {
|
||||||
version = "1.1.0";
|
version = "1.1.0";
|
||||||
release = "SR0";
|
release = "SR0";
|
||||||
branch = "1.1.0";
|
|
||||||
rev = "1917";
|
rev = "1917";
|
||||||
sha256 = "sha256-qNBaGWl89Le9uC1VFK+xYhrLzIvOIWjkQbutnrAmZ2M=";
|
src = fetchbzr {
|
||||||
|
url = "https://code.launchpad.net/~arcachofo/simulide/1.1.0";
|
||||||
|
sha256 = "sha256-qNBaGWl89Le9uC1VFK+xYhrLzIvOIWjkQbutnrAmZ2M=";
|
||||||
|
inherit rev;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user