harec: unstable-2024-02-03 -> 0.24.0
Drop usage of pinned qbe in favor of qbe-1.2.
This commit is contained in:
parent
65480f71f8
commit
e28cb4fb57
1 changed files with 8 additions and 21 deletions
|
@ -2,46 +2,35 @@
|
|||
, stdenv
|
||||
, fetchFromSourcehut
|
||||
, qbe
|
||||
, fetchgit
|
||||
, gitUpdater
|
||||
}:
|
||||
let
|
||||
# harec needs the dbgfile and dbgloc features implemented up to this commit.
|
||||
# This can be dropped once 1.2 is released. For a possible release date, see:
|
||||
# https://lists.sr.ht/~mpu/qbe/%3CZPkmHE9KLohoEohE%40cloudsdale.the-delta.net.eu.org%3E
|
||||
qbe' = qbe.overrideAttrs (_old: {
|
||||
version = "1.1-unstable-2024-01-12";
|
||||
src = fetchgit {
|
||||
url = "git://c9x.me/qbe.git";
|
||||
rev = "85287081c4a25785dec1ec48c488a5879b3c37ac";
|
||||
hash = "sha256-7bVbxUU/HXJXLtAxhoK0URmPtjGwMSZrPkx8WKl52Mg=";
|
||||
};
|
||||
});
|
||||
|
||||
platform = lib.toLower stdenv.hostPlatform.uname.system;
|
||||
arch = stdenv.hostPlatform.uname.processor;
|
||||
in
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "harec";
|
||||
version = "unstable-2024-02-03";
|
||||
version = "0.24.0";
|
||||
|
||||
src = fetchFromSourcehut {
|
||||
owner = "~sircmpwn";
|
||||
repo = "harec";
|
||||
rev = "09cb18990266eef814917d8211d38b82e0896532";
|
||||
hash = "sha256-cxWRqGipoDATN1+V9s9S2WJ3sLMcTqIJmhP5XTld3AU=";
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-NOfoCT/wKZ3CXYzXZq7plXcun+MXQicfzBOmetXN7Qs=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
qbe'
|
||||
qbe
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
qbe'
|
||||
qbe
|
||||
];
|
||||
|
||||
makeFlags = [
|
||||
"PREFIX=${builtins.placeholder "out"}"
|
||||
"ARCH=${arch}"
|
||||
"VERSION=${finalAttrs.version}-nixpkgs"
|
||||
];
|
||||
|
||||
strictDeps = true;
|
||||
|
@ -55,9 +44,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
'';
|
||||
|
||||
passthru = {
|
||||
# We create this attribute so that the `hare` package can access the
|
||||
# overwritten `qbe`.
|
||||
qbeUnstable = qbe';
|
||||
updateScript = gitUpdater { };
|
||||
};
|
||||
|
||||
meta = {
|
||||
|
|
Loading…
Reference in a new issue