mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
qmplay2: detach sources acquisition to sources.nix
Because it uses fetchSubmodules, and maybe in the future it will become discouraged.
This commit is contained in:
parent
8d69d77244
commit
02dfdf731e
2 changed files with 26 additions and 11 deletions
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
alsa-lib,
|
alsa-lib,
|
||||||
|
callPackage,
|
||||||
cmake,
|
cmake,
|
||||||
fetchFromGitHub,
|
|
||||||
ffmpeg,
|
ffmpeg,
|
||||||
fribidi,
|
fribidi,
|
||||||
game-music-emu,
|
game-music-emu,
|
||||||
|
@ -23,17 +23,11 @@
|
||||||
vulkan-tools,
|
vulkan-tools,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
sources = callPackage ./sources.nix { };
|
||||||
|
in
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "qmplay2";
|
inherit (sources.qmplay2) pname version src;
|
||||||
version = "24.04.07";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "zaps166";
|
|
||||||
repo = "QMPlay2";
|
|
||||||
rev = finalAttrs.version;
|
|
||||||
fetchSubmodules = true;
|
|
||||||
hash = "sha256-WIDGApvl+aaB3Vdv0sHY+FHWqzreWWd3/xOLV11YfxM=";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cmake
|
cmake
|
||||||
|
|
21
pkgs/by-name/qm/qmplay2/sources.nix
Normal file
21
pkgs/by-name/qm/qmplay2/sources.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
fetchFromGitHub,
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
qmplay2 = let
|
||||||
|
self = {
|
||||||
|
pname = "qmplay2";
|
||||||
|
version = "24.04.07";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "zaps166";
|
||||||
|
repo = "QMPlay2";
|
||||||
|
rev = self.version;
|
||||||
|
fetchSubmodules = true;
|
||||||
|
hash = "sha256-WIDGApvl+aaB3Vdv0sHY+FHWqzreWWd3/xOLV11YfxM=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in
|
||||||
|
self;
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue