bulk versions.json
This commit is contained in:
@@ -8,21 +8,20 @@
|
||||
python3,
|
||||
libpulseaudio,
|
||||
fetchFromGitHub,
|
||||
pkgs,
|
||||
}:
|
||||
let
|
||||
inherit (lib.trivial) importJSON;
|
||||
versions = importJSON ./versions.json;
|
||||
versionSpec = importJSON ./version.json;
|
||||
versioning = import ../../lib/versioning.nix { inherit lib pkgs; };
|
||||
selected = versioning.selectVariant versionSpec null null;
|
||||
sources = versioning.mkAllSources selected;
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
pname = "librepods";
|
||||
version = "unstable";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kavishdevar";
|
||||
repo = "librepods";
|
||||
rev = versions.rev;
|
||||
hash = versions.hash;
|
||||
};
|
||||
src = sources.librepods;
|
||||
|
||||
sourceRoot = "source/linux";
|
||||
|
||||
|
||||
11
packages/librepods/version.json
Normal file
11
packages/librepods/version.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"sources": {
|
||||
"librepods": {
|
||||
"fetcher": "git",
|
||||
"url": "https://github.com/kavishdevar/librepods",
|
||||
"rev": "287163e116d092485d561ad571dae03a2f43cf2f",
|
||||
"hash": "sha256-PD5U87RVBRCLWwnN54x3AEey6wqoOeZlBvzyIESH1v8="
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"repo": "https://github.com/kavishdevar/librepods",
|
||||
"rev": "287163e116d092485d561ad571dae03a2f43cf2f",
|
||||
"hash": "sha256-PD5U87RVBRCLWwnN54x3AEey6wqoOeZlBvzyIESH1v8="
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user