{"id":31630934,"url":"https://github.com/kenryus/printnixpkgspath","last_synced_at":"2025-10-06T22:34:07.050Z","repository":{"id":313668362,"uuid":"1052196384","full_name":"kenryuS/printNixPkgsPath","owner":"kenryuS","description":"Nix function that generates simple shell function to print out all output paths of listed packages on nix store.","archived":false,"fork":false,"pushed_at":"2025-09-07T16:56:53.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-07T18:42:21.568Z","etag":null,"topics":["flake","nix","nix-flake","simple-tool"],"latest_commit_sha":null,"homepage":"","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kenryuS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-07T15:51:54.000Z","updated_at":"2025-09-07T16:59:03.000Z","dependencies_parsed_at":"2025-09-07T18:42:23.550Z","dependency_job_id":"2f2ba5e9-70ef-4415-93a9-0126e230f44d","html_url":"https://github.com/kenryuS/printNixPkgsPath","commit_stats":null,"previous_names":["kenryus/printnixpkgspath"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/kenryuS/printNixPkgsPath","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenryuS%2FprintNixPkgsPath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenryuS%2FprintNixPkgsPath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenryuS%2FprintNixPkgsPath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenryuS%2FprintNixPkgsPath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kenryuS","download_url":"https://codeload.github.com/kenryuS/printNixPkgsPath/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenryuS%2FprintNixPkgsPath/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278691907,"owners_count":26029360,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flake","nix","nix-flake","simple-tool"],"created_at":"2025-10-06T22:34:03.287Z","updated_at":"2025-10-06T22:34:07.039Z","avatar_url":"https://github.com/kenryuS.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# printNixPkgsPath\nNix function that generates simple shell function to print out all output paths of listed packages on nix store.\n\n## Usage\n\nThis is expected to be used in devShell's shellHook.\n\n```nix\n{\n  inputs = {\n    nixpkgs.url = \"github:NixOS/nixpkgs/nixos-unstable\";\n    printNixPkgsPath.url = \"github:kenryus/printNixPkgsPath\";\n  };\n\n  outputs = { self, nixpkgs, printNixPkgsPath }:\n  let\n    system = \"x86_64-linux\";\n    pkgs = import nixpkgs {\n      inherit system;\n    };\n    lib = pkgs.lib;\n    printNixPkgsPath_cmd = import printNixPkgsPath;\n    nativeBuildInputs = with pkgs; [\n      cmake\n      cowsay\n      pkgconf\n    ];\n  in\n    {\n      devShell.system.default = pkgs.stdenv.mkDerivation {\n        name = \"dev shell\";\n        inherit nativeBuildInputs;\n        shellHook = ''\n          ${printNixPkgsPath_cmd nativeBuildInputs}\n        '';\n      };\n    };\n}\n```\n\nEnter to devShell with `nix develop` then check where in the Nix store the packages live with this command:\n\n```bash\n$ printNixPkgsPath\n```\n\nExample Output:\n\n```\ncmake-3.31.7:\n    /nix/store/0vnarm4qjnj16dr3zj9kwq6bn79c0icn-cmake-3.31.7\n    /nix/store/nnpfia0s39cy3l7rq2pnn2axs8k625jw-cmake-3.31.7-debug\ncowsay-3.8.4:\n    /nix/store/d57d247hx61ljfxf67ggsgynd16gh2p8-cowsay-3.8.4\n    /nix/store/y63wh8j3xkxrhsm8fr1w2s8k2nj0qrlr-cowsay-3.8.4-man\npkgconf-wrapper-2.4.3:\n    /nix/store/b6wz03kpkjvn6accwhnw6k6qki628dnx-pkgconf-wrapper-2.4.3\n    /nix/store/fv6kwj4w16wr0sryz49g753xq9abdvy1-pkgconf-wrapper-2.4.3-man\n    /nix/store/fbqbl740i7w68gfglkpr3hjz18yf37j5-pkgconf-wrapper-2.4.3-doc\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenryus%2Fprintnixpkgspath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkenryus%2Fprintnixpkgspath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenryus%2Fprintnixpkgspath/lists"}