commit 42c64247ab29bbedcb6f0505e34fa46393e40739 Author: TQ Hirsch Date: Mon Jul 24 15:21:48 2023 +0200 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..730a94f --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*~ +\#performous-composer.nix# +.#performous-composer.nix +result diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..1dbea70 --- /dev/null +++ b/flake.lock @@ -0,0 +1,59 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1689068808, + "narHash": "sha256-6ixXo3wt24N/melDWjq70UuHQLxGV8jZvooRanIHXw0=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "919d646de7be200f3bf08cb76ae1f09402b6f9b4", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1689935543, + "narHash": "sha256-6GQ9ib4dA/r1leC5VUpsBo0BmDvNxLjKrX1iyL+h8mc=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "e43e2448161c0a2c4928abec4e16eae1516571bc", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..46bb072 --- /dev/null +++ b/flake.nix @@ -0,0 +1,19 @@ +{ + description = "Flake utils demo"; + + inputs.flake-utils.url = "github:numtide/flake-utils"; + + outputs = { self, nixpkgs, flake-utils }: + flake-utils.lib.eachDefaultSystem (system: + let pkgs = nixpkgs.legacyPackages.${system}; in + { + packages = rec { + performous-composer = pkgs.libsForQt5.callPackage ./performous-composer.nix {}; + }; + apps = rec { + hello = flake-utils.lib.mkApp { drv = self.packages.${system}.hello; }; + default = hello; + }; + } + ); +} diff --git a/performous-composer.nix b/performous-composer.nix new file mode 100644 index 0000000..1b9ae1c --- /dev/null +++ b/performous-composer.nix @@ -0,0 +1,19 @@ +{ stdenv, ffmpeg_4, zlib, xvidcore, qtbase, qtmultimedia, fetchFromGitHub, cmake, + wrapQtAppsHook +}: +stdenv.mkDerivation { + pname = "performous-composer"; + version = "2.0.0.20230723"; + + src = fetchFromGitHub { + owner = "performous"; + repo = "composer"; + rev = "bd9fbd1ed3f933b82c900ecb56e3835989315e06"; + sha256 = "sha256-Xz0NlVBLTAHbt9d6MBMn8lqxAJz417B+aFunSGjX17U="; + }; + + buildInputs = [ ffmpeg_4 zlib xvidcore qtbase qtmultimedia ]; + + nativeBuildInputs = [ cmake wrapQtAppsHook ]; + +}