From c675c29be3b49f4de049b2ccfb2a7f36951768d5 Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Tue, 16 Dec 2025 02:25:09 +0530 Subject: [PATCH] chore(gst): Remove flake files and configurations from gst --- gst/.envrc | 1 - gst/flake.lock | 136 ----------------------------------------- gst/flake.nix | 161 ------------------------------------------------- 3 files changed, 298 deletions(-) delete mode 100644 gst/.envrc delete mode 100644 gst/flake.lock delete mode 100644 gst/flake.nix diff --git a/gst/.envrc b/gst/.envrc deleted file mode 100644 index 3550a30..0000000 --- a/gst/.envrc +++ /dev/null @@ -1 +0,0 @@ -use flake diff --git a/gst/flake.lock b/gst/flake.lock deleted file mode 100644 index 020d419..0000000 --- a/gst/flake.lock +++ /dev/null @@ -1,136 +0,0 @@ -{ - "nodes": { - "advisory-db": { - "flake": false, - "locked": { - "lastModified": 1765465865, - "narHash": "sha256-jAyDD6FKEWZafIKN4KjzdQywcS/gR9sHz4zzjxefXcA=", - "owner": "rustsec", - "repo": "advisory-db", - "rev": "d0bdb37b2b1dc8a81f47e2042d59227b1f06473f", - "type": "github" - }, - "original": { - "owner": "rustsec", - "repo": "advisory-db", - "type": "github" - } - }, - "crane": { - "locked": { - "lastModified": 1765739568, - "narHash": "sha256-gQYx35Of4UDKUjAYvmxjUEh/DdszYeTtT6MDin4loGE=", - "owner": "ipetkov", - "repo": "crane", - "rev": "67d2baff0f9f677af35db61b32b5df6863bcc075", - "type": "github" - }, - "original": { - "owner": "ipetkov", - "repo": "crane", - "type": "github" - } - }, - "flake-utils": { - "inputs": { - "systems": "systems" - }, - "locked": { - "lastModified": 1731533236, - "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, - "nix-github-actions": { - "inputs": { - "nixpkgs": [ - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1737420293, - "narHash": "sha256-F1G5ifvqTpJq7fdkT34e/Jy9VCyzd5XfJ9TO8fHhJWE=", - "owner": "nix-community", - "repo": "nix-github-actions", - "rev": "f4158fa080ef4503c8f4c820967d946c2af31ec9", - "type": "github" - }, - "original": { - "owner": "nix-community", - "repo": "nix-github-actions", - "type": "github" - } - }, - "nixpkgs": { - "locked": { - "lastModified": 1765472234, - "narHash": "sha256-9VvC20PJPsleGMewwcWYKGzDIyjckEz8uWmT0vCDYK0=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "2fbfb1d73d239d2402a8fe03963e37aab15abe8b", - "type": "github" - }, - "original": { - "owner": "nixos", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "root": { - "inputs": { - "advisory-db": "advisory-db", - "crane": "crane", - "flake-utils": "flake-utils", - "nix-github-actions": "nix-github-actions", - "nixpkgs": "nixpkgs", - "rust-overlay": "rust-overlay" - } - }, - "rust-overlay": { - "inputs": { - "nixpkgs": [ - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1765766816, - "narHash": "sha256-m2au5a2x9L3ikyBi0g3/NRJSjmHVDvT42mn+O6FlyPs=", - "owner": "oxalica", - "repo": "rust-overlay", - "rev": "4f53a635709d82652567f51ef7af4365fbc0c88b", - "type": "github" - }, - "original": { - "owner": "oxalica", - "repo": "rust-overlay", - "type": "github" - } - }, - "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/gst/flake.nix b/gst/flake.nix deleted file mode 100644 index 298fab6..0000000 --- a/gst/flake.nix +++ /dev/null @@ -1,161 +0,0 @@ -{ - description = "A simple rust flake using rust-overlay and craneLib"; - - inputs = { - nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; - flake-utils.url = "github:numtide/flake-utils"; - crane.url = "github:ipetkov/crane"; - nix-github-actions = { - url = "github:nix-community/nix-github-actions"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - rust-overlay = { - url = "github:oxalica/rust-overlay"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - advisory-db = { - url = "github:rustsec/advisory-db"; - flake = false; - }; - }; - - outputs = { - self, - crane, - flake-utils, - nixpkgs, - rust-overlay, - advisory-db, - nix-github-actions, - ... - }: - flake-utils.lib.eachDefaultSystem ( - system: let - pkgs = import nixpkgs { - inherit system; - overlays = [ - rust-overlay.overlays.default - ]; - }; - inherit (pkgs) lib; - cargoToml = builtins.fromTOML (builtins.readFile ./Cargo.toml); - name = cargoToml.package.name; - - stableToolchain = pkgs.rust-bin.stable.latest.default; - stableToolchainWithLLvmTools = stableToolchain.override { - extensions = ["rust-src" "llvm-tools"]; - }; - stableToolchainWithRustAnalyzer = stableToolchain.override { - extensions = ["rust-src" "rust-analyzer"]; - }; - craneLib = (crane.mkLib pkgs).overrideToolchain stableToolchain; - craneLibLLvmTools = (crane.mkLib pkgs).overrideToolchain stableToolchainWithLLvmTools; - - src = let - filterBySuffix = path: exts: lib.any (ext: lib.hasSuffix ext path) exts; - sourceFilters = path: type: (craneLib.filterCargoSources path type) || filterBySuffix path [".c" ".h" ".hpp" ".cpp" ".cc"]; - in - lib.cleanSourceWith { - filter = sourceFilters; - src = ./.; - }; - commonArgs = - { - inherit src; - pname = name; - stdenv = p: p.clangStdenv; - doCheck = false; - # LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib"; - # LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs; - # SYSTEM_DEPS_LINK = "static"; - # PKG_CONFIG_ALL_STATIC = "1"; - GIO_EXTRA_MODULES = "${pkgs.glib-networking}/lib/gio/modules"; - nativeBuildInputs = with pkgs; [ - pkg-config - ]; - buildInputs = with pkgs; - [ - gst_all_1.gst-libav - gst_all_1.gst-plugins-base - gst_all_1.gst-plugins-good - gst_all_1.gst-plugins-bad - gst_all_1.gst-plugins-ugly - gst_all_1.gst-plugins-rs - gst_all_1.gstreamer - glib - glib-networking - ] - ++ (lib.optionals pkgs.stdenv.isDarwin [ - libiconv - apple-sdk_26 - ]); - } - // (lib.optionalAttrs pkgs.stdenv.isLinux { - # BINDGEN_EXTRA_CLANG_ARGS = "-I${pkgs.llvmPackages.libclang.lib}/lib/clang/18/include"; - }); - cargoArtifacts = craneLib.buildPackage commonArgs; - in { - checks = - { - "${name}-clippy" = craneLib.cargoClippy (commonArgs - // { - inherit cargoArtifacts; - cargoClippyExtraArgs = "--all-targets -- --deny warnings"; - }); - "${name}-docs" = craneLib.cargoDoc (commonArgs // {inherit cargoArtifacts;}); - "${name}-fmt" = craneLib.cargoFmt {inherit src;}; - "${name}-toml-fmt" = craneLib.taploFmt { - src = pkgs.lib.sources.sourceFilesBySuffices src [".toml"]; - }; - # Audit dependencies - "${name}-audit" = craneLib.cargoAudit { - inherit src advisory-db; - }; - - # Audit licenses - "${name}-deny" = craneLib.cargoDeny { - inherit src; - }; - "${name}-nextest" = craneLib.cargoNextest (commonArgs - // { - inherit cargoArtifacts; - partitions = 1; - partitionType = "count"; - }); - } - // lib.optionalAttrs (!pkgs.stdenv.isDarwin) { - "${name}-llvm-cov" = craneLibLLvmTools.cargoLlvmCov (commonArgs // {inherit cargoArtifacts;}); - }; - - packages = let - pkg = craneLib.buildPackage ( - commonArgs - // {inherit cargoArtifacts;} - ); - in { - "${name}" = pkg; - default = pkg; - }; - - devShells = { - default = pkgs.mkShell.override {stdenv = pkgs.clangStdenv;} (commonArgs - // { - packages = with pkgs; - [ - stableToolchainWithRustAnalyzer - cargo-nextest - cargo-deny - ] - ++ (lib.optionals pkgs.stdenv.isDarwin [ - apple-sdk_26 - ]); - }); - }; - } - ) - // { - githubActions = nix-github-actions.lib.mkGithubMatrix { - checks = nixpkgs.lib.getAttrs ["x86_64-linux"] self.checks; - }; - }; -}